public class ItemArmor extends Item
Modifier and Type | Class and Description |
---|---|
static class |
ItemArmor.ArmorMaterial |
Item.ToolMaterial
IForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>
Modifier and Type | Field and Description |
---|---|
EntityEquipmentSlot |
armorType |
int |
damageReduceAmount |
static IBehaviorDispenseItem |
DISPENSER_BEHAVIOR |
static java.lang.String[] |
EMPTY_SLOT_NAMES |
int |
renderIndex |
float |
toughness |
ATTACK_DAMAGE_MODIFIER, ATTACK_SPEED_MODIFIER, bFull3D, canRepair, hasSubtypes, itemRand, maxStackSize, REGISTRY
delegate
Constructor and Description |
---|
ItemArmor(ItemArmor.ArmorMaterial materialIn,
int renderIndexIn,
EntityEquipmentSlot equipmentSlotIn) |
Modifier and Type | Method and Description |
---|---|
static ItemStack |
dispenseArmor(IBlockSource blockSource,
ItemStack stack) |
ItemArmor.ArmorMaterial |
getArmorMaterial() |
int |
getColor(ItemStack stack) |
EntityEquipmentSlot |
getEquipmentSlot() |
boolean |
getIsRepairable(ItemStack toRepair,
ItemStack repair) |
com.google.common.collect.Multimap<java.lang.String,AttributeModifier> |
getItemAttributeModifiers(EntityEquipmentSlot equipmentSlot) |
int |
getItemEnchantability() |
boolean |
hasColor(ItemStack stack) |
ActionResult<ItemStack> |
onItemRightClick(ItemStack itemStackIn,
World worldIn,
EntityPlayer playerIn,
EnumHand hand) |
void |
removeColor(ItemStack stack) |
void |
setColor(ItemStack stack,
int color) |
addInformation, addPropertyOverride, canHarvestBlock, canHarvestBlock, canItemEditBlocks, createEntity, doesSneakBypassUse, getAnimationParameters, getArmorModel, getArmorTexture, getAttributeModifiers, getByNameOrId, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getDamage, getDurabilityForDisplay, getEntityLifespan, getFontRenderer, getHarvestLevel, getHasSubtypes, getHighlightTip, getIdFromItem, getItemById, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxDamage, getMaxItemUseDuration, getMetadata, getMetadata, getPropertyGetter, getRarity, getShareTag, getSmeltingExperience, getStrVsBlock, getSubItems, getToolClasses, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasCustomProperties, hasEffect, hitEntity, initCapabilities, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isFull3D, isItemTool, isMap, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onItemUse, onItemUseFinish, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, rayTrace, registerItemBlock, registerItems, renderHelmetOverlay, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setUnlocalizedName, shouldCauseReequipAnimation, shouldRotateAroundWhenRendering, showDurabilityBar, updateItemStackNBT
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
public static final java.lang.String[] EMPTY_SLOT_NAMES
public static final IBehaviorDispenseItem DISPENSER_BEHAVIOR
public final EntityEquipmentSlot armorType
public final int damageReduceAmount
public final float toughness
public final int renderIndex
public ItemArmor(ItemArmor.ArmorMaterial materialIn, int renderIndexIn, EntityEquipmentSlot equipmentSlotIn)
public static ItemStack dispenseArmor(IBlockSource blockSource, ItemStack stack)
public EntityEquipmentSlot getEquipmentSlot()
public int getItemEnchantability()
getItemEnchantability
in class Item
public ItemArmor.ArmorMaterial getArmorMaterial()
public boolean hasColor(ItemStack stack)
public int getColor(ItemStack stack)
public void removeColor(ItemStack stack)
public void setColor(ItemStack stack, int color)
public boolean getIsRepairable(ItemStack toRepair, ItemStack repair)
getIsRepairable
in class Item
public ActionResult<ItemStack> onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn, EnumHand hand)
onItemRightClick
in class Item
public com.google.common.collect.Multimap<java.lang.String,AttributeModifier> getItemAttributeModifiers(EntityEquipmentSlot equipmentSlot)
getItemAttributeModifiers
in class Item