2014-12-15 00:11:48 +00:00
|
|
|
package com.cricketcraft.chisel.block;
|
2014-04-21 19:13:15 +01:00
|
|
|
|
2014-08-07 20:58:26 +01:00
|
|
|
import java.util.Random;
|
|
|
|
|
|
2014-12-14 20:05:39 +00:00
|
|
|
import net.minecraft.block.material.Material;
|
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
|
|
2014-12-16 22:27:44 +00:00
|
|
|
import com.cricketcraft.chisel.client.GeneralChiselClient;
|
|
|
|
|
|
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
|
|
|
}
|