Venom1987

Untitled

Mar 28th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. package items;
  2.  
  3. import tabs.ModTabs;
  4. import net.minecraft.entity.Entity;
  5. import net.minecraft.item.ItemArmor;
  6. import net.minecraft.item.ItemStack;
  7. import help.Reference;
  8.  
  9. public class ItemTutorialumArmor extends ItemArmor
  10. {
  11. public ItemTutorialumArmor(ArmorMaterial material, int ArmorType, String name)
  12. {
  13. super(material, 0, ArmorType);
  14. setUnlocalizedName(name);
  15. setTextureName(Reference.MODID + ":" + getUnlocalizedName().substring(5));
  16. setCreativeTab(ModTabs.tabTutorialMod);
  17. }
  18.  
  19. public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type)
  20. {
  21. if (stack.getItem() == Armory.tutorialumHelm || stack.getItem() == Armory.tutorialumPlate || stack.getItem() == Armory.tutorialumBoots)
  22. {
  23. return Reference.MODID + ":models/armor/tutorialum_layer1.png";
  24. }
  25. else if (stack.getItem() == Armory.tutorialumPants)
  26. {
  27. return Reference.MODID + ":models/armor/tutorialum_layer2.png";
  28. }
  29. else
  30. {
  31. return null;
  32. }
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment