Guest User

2

a guest
Jul 21st, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. package fr.shyfe.train.common;
  2.  
  3. import com.sun.xml.internal.stream.Entity;
  4.  
  5. import net.minecraft.item.ItemArmor;
  6. import net.minecraft.item.ItemStack;
  7.  
  8. public class armorTrain extends ItemArmor
  9. {
  10. public armorTrain(ArmorMaterial material, int type)
  11. {
  12. super(material, 0, type);
  13. }
  14.  
  15. public String getArmorTexure(ItemStack stack, Entity entity, int slot, String type)
  16. {
  17. if(slot == 2)
  18. {
  19. return train.MODID + ":textures/models/armor/train_layer_leggings.png";
  20. }
  21. return train.MODID + ":textures/models/armor/train_layer.png";
  22. }
  23. }
Add Comment
Please, Sign In to add comment