Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package items;
- import tabs.ModTabs;
- import net.minecraft.entity.Entity;
- import net.minecraft.item.ItemArmor;
- import net.minecraft.item.ItemStack;
- import help.Reference;
- public class ItemTutorialumArmor extends ItemArmor
- {
- public ItemTutorialumArmor(ArmorMaterial material, int ArmorType, String name)
- {
- super(material, 0, ArmorType);
- setUnlocalizedName(name);
- setTextureName(Reference.MODID + ":" + getUnlocalizedName().substring(5));
- setCreativeTab(ModTabs.tabTutorialMod);
- }
- public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type)
- {
- if (stack.getItem() == Armory.tutorialumHelm || stack.getItem() == Armory.tutorialumPlate || stack.getItem() == Armory.tutorialumBoots)
- {
- return Reference.MODID + ":models/armor/tutorialum_layer1.png";
- }
- else if (stack.getItem() == Armory.tutorialumPants)
- {
- return Reference.MODID + ":models/armor/tutorialum_layer2.png";
- }
- else
- {
- return null;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment