package extracells.blocks;
import net.minecraft.block.Block;
import net.minecraft.block.ITileEntityProvider;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.Icon;
import net.minecraft.world.World;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import extracells.tileentity.TileEntityVoidFluid;
public class BlockVoidFluid extends Block implements ITileEntityProvider
{
@SideOnly(Side.CLIENT)
Icon icon;
public BlockVoidFluid(int id)
{
super(id, Material.rock);
setCreativeTab(extracells.Extracells.ModTab);
setUnlocalizedName("block.fluid.void");
setHardness(2.0F);
setResistance(10.0F);
}
@Override
public TileEntity createNewTileEntity(World world)
{
return new TileEntityVoidFluid();
}
public Icon getIcon(int side, int metadata)
{
return icon;
}
@SideOnly(Side.CLIENT)
public void registerIcons(IconRegister iconregister)
{
icon = iconregister.registerIcon("extracells:fluid.void");
}
}