Guest User

Untitled

a guest
Aug 15th, 2014
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. public class BronzeArmor extends ItemArmor{
  2.  
  3. private String texturePath = "mod:textures/model/armor/";
  4.  
  5. public BronzeArmor(int id, int armorType) {
  6. super(MyMod.BronzeArmorMaterial, id, armorType);
  7. this.setCreativeTab(MyMod.tabCustom);
  8. this.setMaxStackSize(1);
  9. this.setTextureName();
  10. }
  11.  
  12. public void setTextureName ()
  13. {
  14. if(armorType == 0||armorType == 1||armorType == 3){
  15. this.texturePath += "BronzeArmor_" + 1 + ".png";
  16. }
  17. else {
  18. this.texturePath += "BronzeArmor_" + 2 + ".png";
  19. }
  20. }
  21. @Override
  22. public String getArmorTexture(ItemStack itemstack, Entity entity, int slot, String type){
  23. return this.texturePath;
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment