public class ItemArmor extends Item
Item.Properties| Modifier and Type | Field and Description |
|---|---|
protected EntityEquipmentSlot |
armorType |
protected int |
damageReduceAmount |
static IBehaviorDispenseItem |
DISPENSER_BEHAVIOR |
protected IArmorMaterial |
material |
protected float |
toughness |
ATTACK_DAMAGE_MODIFIER, ATTACK_SPEED_MODIFIER, BLOCK_TO_ITEM, canRepair, group, properties, randomdelegate| Constructor and Description |
|---|
ItemArmor(IArmorMaterial materialIn,
EntityEquipmentSlot slots,
Item.Properties builder) |
| Modifier and Type | Method and Description |
|---|---|
static ItemStack |
dispenseArmor(IBlockSource blockSource,
ItemStack stack) |
IArmorMaterial |
getArmorMaterial() |
com.google.common.collect.Multimap<java.lang.String,AttributeModifier> |
getAttributeModifiers(EntityEquipmentSlot equipmentSlot) |
int |
getDamageReduceAmount() |
EntityEquipmentSlot |
getEquipmentSlot() |
boolean |
getIsRepairable(ItemStack toRepair,
ItemStack repair) |
int |
getItemEnchantability() |
float |
getToughness() |
ActionResult<ItemStack> |
onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
addInformation, addPropertyOverride, asItem, canHarvestBlock, canPlayerBreakBlockWhileHolding, fillItemGroup, getContainerItem, getDefaultInstance, getDefaultTranslationKey, getDestroySpeed, getDisplayName, getGroup, getHarvestLevel, getIdFromItem, getItemById, getItemFromBlock, getMaxDamage, getMaxStackSize, getName, getPropertyGetter, getRarity, getShareTag, getTileEntityItemStackRenderer, getToolTypes, getTranslationKey, getTranslationKey, getUseAction, getUseDuration, hasContainerItem, hasCustomProperties, hasEffect, hitEntity, inventoryTick, isComplex, isDamageable, isEnchantable, isIn, isInGroup, isRepairable, itemInteractionForEntity, onBlockDestroyed, onCreated, onItemUse, onItemUseFinish, onPlayerStoppedUsing, rayTrace, register, registerItems, updateItemStackNBTgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canEquip, canHarvestBlock, createEntity, doesSneakBypassUse, getAnimationParameters, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getHorseArmorType, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isBeaconPayment, isBookEnchantable, isDamaged, isShield, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBarpublic static final IBehaviorDispenseItem DISPENSER_BEHAVIOR
protected final EntityEquipmentSlot armorType
protected final int damageReduceAmount
protected final float toughness
protected final IArmorMaterial material
public ItemArmor(IArmorMaterial materialIn, EntityEquipmentSlot slots, Item.Properties builder)
public static ItemStack dispenseArmor(IBlockSource blockSource, ItemStack stack)
public EntityEquipmentSlot getEquipmentSlot()
public int getItemEnchantability()
getItemEnchantability in class Itempublic IArmorMaterial getArmorMaterial()
public boolean getIsRepairable(ItemStack toRepair, ItemStack repair)
getIsRepairable in class Itempublic ActionResult<ItemStack> onItemRightClick(World worldIn, EntityPlayer playerIn, EnumHand handIn)
onItemRightClick in class Itempublic com.google.common.collect.Multimap<java.lang.String,AttributeModifier> getAttributeModifiers(EntityEquipmentSlot equipmentSlot)
getAttributeModifiers in class Itempublic int getDamageReduceAmount()
public float getToughness()