Skip to content

Instantly share code, notes, and snippets.

@shawndeprey
Created August 31, 2013 05:17
Show Gist options
  • Save shawndeprey/6396360 to your computer and use it in GitHub Desktop.
Save shawndeprey/6396360 to your computer and use it in GitHub Desktop.
package bms;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumArmorMaterial;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
import net.minecraft.util.DamageSource;
public class ItemBMSArmor extends ItemArmor {
public ItemBMSArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
super(par1, par2EnumArmorMaterial, par3, par4);
}
public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type)
{
String path = "titanium_2";
if(stack.itemID == ItemsBMS.titaniumHelmet.itemID || stack.itemID == ItemsBMS.titaniumChest.itemID || stack.itemID == ItemsBMS.titaniumBoots.itemID){
path = "titanium_1";
}
return "bms:textures/models/armor/" + path + ".png";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment