Merging armors
This commit is contained in:
parent
07b69ca8e0
commit
6badf4c9de
6 changed files with 22 additions and 127 deletions
|
|
@ -1,29 +0,0 @@
|
|||
package mysticworld.items;
|
||||
|
||||
import mysticworld.MysticWorld;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.item.ItemArmor;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class ItemArmorAdamantine extends ItemArmor {
|
||||
int ArmorType;
|
||||
|
||||
public ItemArmorAdamantine(ArmorMaterial par2EnumArmorMaterial, int par4) {
|
||||
super(par2EnumArmorMaterial, 0, par4);
|
||||
this.ArmorType = par4;
|
||||
this.setMaxDamage(3000);
|
||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, int slot, String layer) {
|
||||
int suffix = this.armorType == 2 ? 2 : 1;
|
||||
return "mysticworld:textures/models/armor/Adamantine_layer_" + suffix + ".png";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons(IIconRegister iconRegister) {
|
||||
itemIcon = iconRegister.registerIcon("mysticworld:AdamantineArmor_" + ArmorType);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,29 +1,15 @@
|
|||
package mysticworld.items;
|
||||
|
||||
import mysticworld.MysticWorld;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemArmor;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.potion.Potion;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class ItemArmorIridium extends ItemArmor {
|
||||
int ArmorType;
|
||||
|
||||
public class ItemArmorIridium extends ItemMaterialArmor {
|
||||
public ItemArmorIridium(ArmorMaterial par2EnumArmorMaterial, int par4) {
|
||||
super(par2EnumArmorMaterial, 0, par4);
|
||||
this.ArmorType = par4;
|
||||
super(par2EnumArmorMaterial, par4);
|
||||
this.setMaxDamage(4000);
|
||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, int slot, String layer) {
|
||||
int suffix = this.armorType == 2 ? 2 : 1;
|
||||
return "mysticworld:textures/models/armor/Iridium_layer_" + suffix + ".png";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -56,9 +42,4 @@ public class ItemArmorIridium extends ItemArmor {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons(IIconRegister iconRegister) {
|
||||
itemIcon = iconRegister.registerIcon("mysticworld:IridiumArmor_" + ArmorType);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
package mysticworld.items;
|
||||
|
||||
import mysticworld.MysticWorld;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.item.ItemArmor;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class ItemArmorMithril extends ItemArmor {
|
||||
int ArmorType;
|
||||
|
||||
public ItemArmorMithril(ArmorMaterial par2EnumArmorMaterial, int par4) {
|
||||
super(par2EnumArmorMaterial, 0, par4);
|
||||
this.ArmorType = par4;
|
||||
this.setMaxDamage(500);
|
||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, int slot, String layer) {
|
||||
int suffix = this.armorType == 2 ? 2 : 1;
|
||||
return "mysticworld:textures/models/armor/Mithril_layer_" + suffix + ".png";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons(IIconRegister iconRegister) {
|
||||
itemIcon = iconRegister.registerIcon("mysticworld:MithrilArmor_" + ArmorType);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
package mysticworld.items;
|
||||
|
||||
import mysticworld.MysticWorld;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.item.ItemArmor;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class ItemArmorVerdite extends ItemArmor {
|
||||
int ArmorType;
|
||||
|
||||
public ItemArmorVerdite(ArmorMaterial par2EnumArmorMaterial, int par4) {
|
||||
super(par2EnumArmorMaterial, 0, par4);
|
||||
this.ArmorType = par4;
|
||||
this.setMaxDamage(262);
|
||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, int slot, String layer) {
|
||||
int suffix = this.armorType == 2 ? 2 : 1;
|
||||
return "mysticworld:textures/models/armor/Verdite_layer_" + suffix + ".png";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons(IIconRegister iconRegister) {
|
||||
itemIcon = iconRegister.registerIcon("mysticworld:VerditeArmor_" + ArmorType);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue