Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class BronzeArmor extends ItemArmor{
- private String texturePath = "mod:textures/model/armor/";
- public BronzeArmor(int id, int armorType) {
- super(MyMod.BronzeArmorMaterial, id, armorType);
- this.setCreativeTab(MyMod.tabCustom);
- this.setMaxStackSize(1);
- this.setTextureName();
- }
- public void setTextureName ()
- {
- if(armorType == 0||armorType == 1||armorType == 3){
- this.texturePath += "BronzeArmor_" + 1 + ".png";
- }
- else {
- this.texturePath += "BronzeArmor_" + 2 + ".png";
- }
- }
- @Override
- public String getArmorTexture(ItemStack itemstack, Entity entity, int slot, String type){
- return this.texturePath;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment