Advertisement
Guest User

Untitled

a guest
Oct 28th, 2013
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. package phnxflms.unidye;
  2.  
  3. import cpw.mods.fml.relauncher.Side;
  4. import cpw.mods.fml.relauncher.SideOnly;
  5. import net.minecraft.block.Block;
  6. import net.minecraft.block.material.Material;
  7. import net.minecraft.client.renderer.texture.IconRegister;
  8. import net.minecraft.creativetab.CreativeTabs;
  9. import net.minecraft.entity.player.EntityPlayer;
  10. import net.minecraft.tileentity.TileEntity;
  11. import net.minecraft.world.World;
  12.  
  13. public class BlockWoolDyer extends Block{
  14.  
  15. public BlockWoolDyer(int id, Material material) {
  16. super(id, material);
  17. this.setCreativeTab(CreativeTabs.tabBlock);
  18. }
  19.  
  20. public TileEntity createTileEntity(World world, int metadata)
  21. {
  22. return new WoolDyerTileEntity();
  23. }
  24.  
  25. public boolean canWrench(EntityPlayer player, int x, int y, int z) {
  26. return true;
  27.  
  28. }
  29.  
  30. @SideOnly(Side.CLIENT) //Only done client-side
  31. public void registerIcons(IconRegister par1IconRegister)//Assigns a texture to uniDye
  32. {
  33. this.blockIcon = par1IconRegister.registerIcon(Unidye.modid + ":" + (this.getUnlocalizedName().substring(5)));
  34.  
  35. }
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement