Fixes for 1.6 ... way to go new resource system >.>
This commit is contained in:
parent
39fb450191
commit
be1a2ad2a1
12 changed files with 42 additions and 199 deletions
|
|
@ -3,6 +3,7 @@ package MysticWorld.Items;
|
|||
import MysticWorld.MysticWorld;
|
||||
import net.minecraft.client.renderer.texture.IconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.item.EnumArmorMaterial;
|
||||
import net.minecraft.item.ItemArmor;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
|
@ -15,12 +16,11 @@ public class ItemArmorAdamantine extends ItemArmor
|
|||
String ArmorFile_2;
|
||||
|
||||
public ItemArmorAdamantine(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
|
||||
|
||||
super(par1, par2EnumArmorMaterial,par3,par4);
|
||||
this.ArmorType=par4;
|
||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||
this.ArmorFile_1 = "/assets/MysticTextures/textures/armor/adamantine_1.png";
|
||||
this.ArmorFile_2 = "/assets/MysticTextures/textures/armor/adamantine_2.png";
|
||||
this.ArmorFile_1 = "/MysticTextures/textures/armor/adamantine_1.png";
|
||||
this.ArmorFile_2 = "/MysticTextures/textures/armor/adamantine_2.png";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -42,16 +42,10 @@ public class ItemArmorAdamantine extends ItemArmor
|
|||
}
|
||||
}
|
||||
|
||||
public String getArmorTextureFile(ItemStack par1){
|
||||
if(par1.itemID == ItemHandler$1.adamantineHelmet.itemID||par1.itemID == ItemHandler$1.adamantineChestplate.itemID||par1.itemID == ItemHandler$1.adamantineBoots.itemID)
|
||||
{
|
||||
return ArmorFile_1;
|
||||
}
|
||||
if(par1.itemID == ItemHandler$1.adamantineLeggings.itemID)
|
||||
{
|
||||
return ArmorFile_2;
|
||||
}
|
||||
return ArmorFile_2;
|
||||
|
||||
}
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer)
|
||||
{
|
||||
int suffix = this.armorType == 2 ? 2 : 1;
|
||||
|
||||
return "MysticTextures:textures" + "/models/armor/Adamantine_layer_" + suffix + ".png";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue