Advertisement
Guest User

help

a guest
Sep 5th, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. package Morpheus420.StormMastery.item;
  2.  
  3. import net.minecraft.entity.Entity;
  4. import net.minecraft.item.ItemArmor;
  5. import net.minecraft.item.ItemStack;
  6.  
  7. public class ItemArmour extends ItemArmor {
  8.  
  9. public ItemArmour(ArmorMaterial armourMaterial, int renderIndex, int armourType) {
  10. super( armourMaterial , renderIndex, armourType);
  11. // TODO Auto-generated constructor stub
  12. }
  13.  
  14.  
  15. @Override
  16. public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type)
  17. {
  18.  
  19.  
  20.  
  21. if(this.armorType == 2)
  22. {
  23. return "al:textures/models/armor/phsik_layer_2.png";
  24.  
  25. }
  26. return "al:textures/models/armor/phsik_layer_1.png";
  27.  
  28.  
  29.  
  30.  
  31.  
  32. }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement