Use lower case domain, as expected from Minecraft
This commit is contained in:
parent
1f385fecc7
commit
1358a5d8f7
24 changed files with 28 additions and 107 deletions
|
|
@ -9,39 +9,22 @@ import net.minecraft.item.ItemStack;
|
|||
|
||||
public class ItemArmorAdamantine extends ItemArmor {
|
||||
int ArmorType;
|
||||
String ArmorFile_1;
|
||||
String ArmorFile_2;
|
||||
|
||||
public ItemArmorAdamantine(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
|
||||
super(par1, par2EnumArmorMaterial, par3, par4);
|
||||
this.ArmorType = par4;
|
||||
this.setMaxDamage(3000);
|
||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||
this.ArmorFile_1 = "/MysticMods/textures/armor/adamantine_1.png";
|
||||
this.ArmorFile_2 = "/MysticMods/textures/armor/adamantine_2.png";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) {
|
||||
int suffix = this.armorType == 2 ? 2 : 1;
|
||||
return "MysticMods:textures" + "/models/armor/Adamantine_layer_" + suffix + ".png";
|
||||
return "mysticmods:textures" + "/models/armor/Adamantine_layer_" + suffix + ".png";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons(IconRegister iconRegister) {
|
||||
switch (ArmorType) {
|
||||
case 0:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:AdamantineArmor_0");
|
||||
break;
|
||||
case 1:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:AdamantineArmor_1");
|
||||
break;
|
||||
case 2:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:AdamantineArmor_2");
|
||||
break;
|
||||
case 3:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:AdamantineArmor_3");
|
||||
break;
|
||||
}
|
||||
itemIcon = iconRegister.registerIcon("mysticmods:AdamantineArmor_" + ArmorType);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue