2015-08-18 20:40:55 -04:00
|
|
|
package team.chisel.block;
|
2014-04-21 19:13:15 +01:00
|
|
|
|
2014-08-07 20:58:26 +01:00
|
|
|
import java.util.Random;
|
|
|
|
|
|
2015-08-18 20:40:55 -04:00
|
|
|
import team.chisel.client.GeneralChiselClient;
|
2014-12-14 20:05:39 +00:00
|
|
|
import net.minecraft.block.material.Material;
|
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
|
|
2015-04-23 17:31:25 -04:00
|
|
|
public class BlockLavastone extends BlockMultiLayer {
|
2015-01-07 19:50:18 -05:00
|
|
|
|
|
|
|
|
public BlockLavastone(Material mat, String baseIcon) {
|
|
|
|
|
super(mat, baseIcon);
|
|
|
|
|
setLightLevel(1F);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void randomDisplayTick(World world, int x, int y, int z, Random random) {
|
|
|
|
|
if (random.nextInt(8) == 0 && world.isRemote)
|
|
|
|
|
GeneralChiselClient.spawnLavastoneFX(world, this, x, y, z);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean renderAsNormalBlock() {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2014-08-07 20:58:26 +01:00
|
|
|
|
2014-04-21 19:13:15 +01:00
|
|
|
}
|