public class ArmorItem extends Item
Item.Properties| Modifier and Type | Field and Description |
|---|---|
protected int |
damageReduceAmount |
static IDispenseItemBehavior |
DISPENSER_BEHAVIOR |
protected IArmorMaterial |
material |
protected EquipmentSlotType |
slot |
protected float |
toughness |
ATTACK_DAMAGE_MODIFIER, ATTACK_SPEED_MODIFIER, BLOCK_TO_ITEM, canRepair, group, properties, randomdelegate| Constructor and Description |
|---|
ArmorItem(IArmorMaterial materialIn,
EquipmentSlotType slot,
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(EquipmentSlotType equipmentSlot) |
int |
getDamageReduceAmount() |
EquipmentSlotType |
getEquipmentSlot() |
boolean |
getIsRepairable(ItemStack toRepair,
ItemStack repair) |
int |
getItemEnchantability() |
float |
getToughness() |
ActionResult<ItemStack> |
onItemRightClick(World worldIn,
PlayerEntity playerIn,
Hand handIn) |
addInformation, addPropertyOverride, asItem, canHarvestBlock, canPlayerBreakBlockWhileHolding, fillItemGroup, func_219972_a, getContainerItem, getDefaultInstance, getDefaultTranslationKey, getDestroySpeed, getDisplayName, getFood, getGroup, getHarvestLevel, getIdFromItem, getItemById, getItemFromBlock, getMaxDamage, getMaxStackSize, getName, getPropertyGetter, getRarity, getTags, getTileEntityItemStackRenderer, getToolTypes, getTranslationKey, getTranslationKey, getUseAction, getUseDuration, hasContainerItem, hasCustomProperties, hasEffect, hitEntity, inventoryTick, isComplex, isCrossbow, isDamageable, isEnchantable, isFood, isIn, isInGroup, isRepairable, itemInteractionForEntity, onBlockDestroyed, onCreated, onItemUse, onItemUseFinish, onPlayerStoppedUsing, rayTrace, shouldSyncTag, toString, updateItemStackNBTgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, getAnimationParameters, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, 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 IDispenseItemBehavior DISPENSER_BEHAVIOR
protected final EquipmentSlotType slot
protected final int damageReduceAmount
protected final float toughness
protected final IArmorMaterial material
public ArmorItem(IArmorMaterial materialIn, EquipmentSlotType slot, Item.Properties builder)
public static ItemStack dispenseArmor(IBlockSource blockSource, ItemStack stack)
public EquipmentSlotType 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, PlayerEntity playerIn, Hand handIn)
onItemRightClick in class Itempublic com.google.common.collect.Multimap<java.lang.String,AttributeModifier> getAttributeModifiers(EquipmentSlotType equipmentSlot)
getAttributeModifiers in class Itempublic int getDamageReduceAmount()
public float getToughness()