12345678910111213141516171819202122232425262728 |
- package me.km.items;
- import me.km.KajetansMod;
- import net.minecraft.client.model.ModelBiped;
- import net.minecraft.entity.EntityLivingBase;
- import net.minecraft.inventory.EntityEquipmentSlot;
- import net.minecraft.item.ItemStack;
- import net.minecraftforge.fml.relauncher.Side;
- import net.minecraftforge.fml.relauncher.SideOnly;
- public class ItemCylinder extends ItemArmor
- {
- public ItemCylinder(ArmorMaterial m, String name, String local)
- {
- super(m, EntityEquipmentSlot.HEAD, name, local);
- }
-
- @SideOnly(Side.CLIENT)
- @Override
- public ModelBiped getArmorModel(EntityLivingBase liv, ItemStack stack, EntityEquipmentSlot slot, ModelBiped normal)
- {
- if(slot != EntityEquipmentSlot.HEAD)
- {
- return normal;
- }
- return KajetansMod.proxy.getCylinderModel();
- }
- }
|