2014-12-15 00:11:48 +00:00
|
|
|
package com.cricketcraft.chisel.block;
|
2014-12-14 20:05:39 +00:00
|
|
|
|
|
|
|
|
import java.util.Random;
|
|
|
|
|
|
2014-10-27 16:26:14 -04:00
|
|
|
import net.minecraft.block.material.Material;
|
|
|
|
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
|
|
|
|
import net.minecraft.util.IIcon;
|
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
|
|
2014-12-16 22:27:44 +00:00
|
|
|
import com.cricketcraft.chisel.client.GeneralChiselClient;
|
|
|
|
|
import com.cricketcraft.chisel.utils.General;
|
|
|
|
|
|
2014-11-30 18:10:51 -05:00
|
|
|
public class BlockHolystone extends BlockCarvable {
|
2014-10-27 16:26:14 -04:00
|
|
|
public IIcon iconStar;
|
|
|
|
|
|
2014-11-30 18:10:51 -05:00
|
|
|
public BlockHolystone(Material m) {
|
|
|
|
|
super(m);
|
2014-10-27 16:26:14 -04:00
|
|
|
|
|
|
|
|
this.setLightLevel(0.25F);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2014-11-30 18:10:51 -05:00
|
|
|
public void randomDisplayTick(World world, int x, int y, int z, Random random) {
|
|
|
|
|
if (General.rand.nextInt(4) == 0 && world.isRemote)
|
2014-10-27 16:26:14 -04:00
|
|
|
GeneralChiselClient.spawnHolystoneFX(world, this, x, y, z);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2014-11-30 18:10:51 -05:00
|
|
|
public void registerBlockIcons(IIconRegister register) {
|
2014-10-27 16:26:14 -04:00
|
|
|
super.registerBlockIcons(register);
|
|
|
|
|
|
|
|
|
|
iconStar = register.registerIcon("Chisel:holystone/particles/star");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|