package erebus.items;
import net.minecraft.client.model.ModelBiped;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.EntityEquipmentSlot;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import erebus.ModItems;
import erebus.ModMaterials;
import erebus.ModTabs;
import erebus.client.model.armor.ModelRhinoHelm;
import erebus.items.ItemMaterials.EnumType;
public class ItemHelmRhino extends ItemArmor {
public ItemHelmRhino(EntityEquipmentSlot slot) {
super(ModMaterials.ARMOR_EXOSKELETON, 2, slot);
setCreativeTab(ModTabs.GEAR);
}
@Override
public boolean getIsRepairable(ItemStack armour, ItemStack material) {
return material.getItem() == ModItems.MATERIALS && material.getItemDamage() == EnumType.PLATE_EXO_RHINO.ordinal();
}
@Override
@SideOnly(Side.CLIENT)
public String getArmorTexture(ItemStack is, Entity entity, EntityEquipmentSlot armorSlot, String type) {
return "erebus:textures/models/armor/rhino_helm.png";
}
@Override
@SideOnly(Side.CLIENT)
public ModelBiped getArmorModel(EntityLivingBase player, ItemStack is, EntityEquipmentSlot armorSlot, ModelBiped modelBiped) {
ModelRhinoHelm model = new ModelRhinoHelm();
model.bipedHead.showModel = false;
model.bipedHeadwear.showModel = false;
model.bipedBody.showModel = false;
model.bipedRightArm.showModel = false;
model.bipedLeftArm.showModel = false;
model.bipedRightLeg.showModel = false;
model.bipedLeftLeg.showModel = false;
return model;
}
@Override
public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean par5) {
}
@Override
public void onArmorTick(World world, EntityPlayer player, ItemStack stack) {
}
}