Files
Chisel/src/main/java/team/chisel/block/BlockLavastone.java
T

27 lines
622 B
Java
Raw Normal View History

2015-08-18 20:40:55 -04:00
package team.chisel.block;
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;
public class BlockLavastone extends BlockMultiLayer {
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
}