Advertisement
Guest User

Untitled

a guest
Sep 16th, 2014
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.01 KB | None | 0 0
  1. package ShadoTECH.Items;
  2.  
  3. import ShadoTECH.Reference;
  4. import ShadoTECH.Entity.entityItemIngotObsidian;
  5. import cpw.mods.fml.relauncher.Side;
  6. import cpw.mods.fml.relauncher.SideOnly;
  7. import net.minecraft.client.renderer.texture.IIconRegister;
  8. import net.minecraft.entity.Entity;
  9. import net.minecraft.item.Item;
  10. import net.minecraft.item.ItemStack;
  11. import net.minecraft.world.World;
  12.  
  13. public class itemIngotObsidian extends Item
  14. {
  15.     public itemIngotObsidian()
  16.     {
  17.         super();
  18.         this.setMaxStackSize(64);
  19.     }
  20.    
  21.     @Override
  22.     @SideOnly(Side.CLIENT)
  23.     public void registerIcons(IIconRegister iconRegister)
  24.     {
  25.         this.itemIcon = iconRegister.registerIcon(Reference.MODID.toLowerCase() + ":" + (this.getUnlocalizedName().substring(5)));
  26.     }
  27.    
  28.     public boolean hasCustomEntity(ItemStack itemStack)
  29.     {
  30.         return true;
  31.     }
  32.    
  33.     public Entity createEntity(World world, Entity location, ItemStack itemStack)
  34.     {
  35.         return new entityItemIngotObsidian(world, location.posX, location.posY, location.posZ, itemStack); 
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement