Renamed textures and files to be more organized for Mystic World
This commit is contained in:
parent
8467eefeef
commit
91da932173
65 changed files with 66 additions and 67 deletions
|
|
@ -1,57 +0,0 @@
|
|||
package MysticWorld.Items;
|
||||
|
||||
import MysticWorld.MysticWorld;
|
||||
import net.minecraft.client.renderer.texture.IconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.EnumArmorMaterial;
|
||||
import net.minecraft.item.ItemArmor;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.common.IArmorTextureProvider;
|
||||
|
||||
public class ItemMithrilArmor extends ItemArmor implements IArmorTextureProvider
|
||||
{
|
||||
int ArmorType;
|
||||
|
||||
String ArmorFile_1;
|
||||
String ArmorFile_2;
|
||||
|
||||
public ItemMithrilArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
|
||||
|
||||
super(par1, par2EnumArmorMaterial,par3,par4);
|
||||
this.ArmorType=par4;
|
||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||
this.ArmorFile_1 = "/mods/MysticTextures/textures/armor/mithril_1.png";
|
||||
this.ArmorFile_2 = "/mods/MysticTextures/textures/armor/mithril_2.png";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons(IconRegister iconRegister)
|
||||
{
|
||||
switch (ArmorType){
|
||||
case 0:
|
||||
itemIcon = iconRegister.registerIcon("MysticTextures:HelmetMithril");
|
||||
break;
|
||||
case 1:
|
||||
itemIcon = iconRegister.registerIcon("MysticTextures:ChestplateMithril");
|
||||
break;
|
||||
case 2:
|
||||
itemIcon = iconRegister.registerIcon("MysticTextures:LeggingsMithril");
|
||||
break;
|
||||
case 3:
|
||||
itemIcon = iconRegister.registerIcon("MysticTextures:BootsMithril");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public String getArmorTextureFile(ItemStack par1){
|
||||
if(par1.itemID == ItemHandler$1.mithrilHelmet.itemID||par1.itemID == ItemHandler$1.mithrilChestplate.itemID||par1.itemID == ItemHandler$1.mithrilBoots.itemID)
|
||||
{
|
||||
return ArmorFile_1;
|
||||
}
|
||||
if(par1.itemID == ItemHandler$1.mithrilLeggings.itemID)
|
||||
{
|
||||
return ArmorFile_2;
|
||||
}
|
||||
return ArmorFile_2;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue