Advertisement
AlphaSwittleTeam

ExampleArmor.java

Mar 7th, 2014
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.75 KB | None | 0 0
  1. package mcmod.nxs.minextension.item.armor;
  2.  
  3. import mcmod.nxs.minextension.MainClass;
  4. import mcmod.nxs.minextension.core.ArmorHandler;
  5. import mcmod.nxs.minextension.lib.IArmor;
  6. import net.minecraft.entity.Entity;
  7. import net.minecraft.item.ItemArmor.ArmorMaterial;
  8. import net.minecraft.item.ItemStack;
  9.  
  10. public class ExampleArmor extends IArmor {
  11.     public ExampleArmor(ArmorMaterial material, int type, int layer) {
  12.         super(material, type, layer);
  13.     }
  14.  
  15.     @Override
  16.     public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type) {
  17.         if (stack.getItem() == ExampleMod.example_leggings) {
  18.             return "modid:textures/models/armors/example_layer_2.png";
  19.         } else {
  20.             return "modid:textures/models/armors/example_layer_1.png";
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement