Eragonn14900

Untitled

Nov 21st, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. package com.reactioncraft.core.common.items;
  2.  
  3. import java.util.List;
  4.  
  5. import com.reactioncraft.reactioncraft;
  6. import com.reactioncraft.core.ItemModelProvider;
  7.  
  8. import net.minecraft.entity.player.EntityPlayer;
  9. import net.minecraft.item.Item;
  10. import net.minecraft.item.ItemStack;
  11. import net.minecraft.item.ItemSword;
  12. import net.minecraft.nbt.NBTTagCompound;
  13. import net.minecraft.util.ResourceLocation;
  14. import net.minecraft.world.World;
  15.  
  16. public class ItemBaseHammer extends ItemSword implements ItemModelProvider
  17. {
  18. protected String name;
  19. public int retunedAmt;
  20. public int myReturnedAmt;
  21.  
  22. public ItemBaseHammer(String name)
  23. {
  24. super(ToolMaterial.WOOD);
  25. this.name = name;
  26. this.setMaxStackSize(1);
  27. this.setMaxDamage(10);
  28. this.setCreativeTab(reactioncraft.ReactioncraftItems);
  29. this.setRegistryName(new ResourceLocation(reactioncraft.MODID, name));
  30. this.setUnlocalizedName(reactioncraft.MODID + "." + name);
  31. }
  32.  
  33. @Override
  34. public void registerItemModel()
  35. {
  36. reactioncraft.proxy.registerItemRenderer(this, 0, this.name);
  37. }
  38.  
  39. @Override
  40. public void addInformation(ItemStack itemStack, EntityPlayer player, List<String> list, boolean par4)
  41. {
  42. list.add("Uses: " + myReturnedAmt);
  43. super.addInformation(itemStack, player, list, par4);
  44. }
  45. }
Add Comment
Please, Sign In to add comment