Package extracells.blocks

Source Code of extracells.blocks.BlockVoidFluid

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");
  }
}
TOP

Related Classes of extracells.blocks.BlockVoidFluid

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.