Created
August 31, 2013 05:17
-
-
Save shawndeprey/6396360 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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