Package net.minecraft.world.item
Class ArmorItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.ArmorItem
- All Implemented Interfaces:
- FeatureElement,- Equipable,- Vanishable,- ItemLike,- IItemExtension
- Direct Known Subclasses:
- CustomArmorModelTest.EndermanArmorItem,- CustomArmorModelTest.TintedArmorItem,- DyeableArmorItem
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.world.item.ItemItem.Properties
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final EnumMap<ArmorItem.Type,UUID> private final com.google.common.collect.Multimap<Attribute,AttributeModifier> private final intstatic final DispenseItemBehaviorprotected final floatprotected final ArmorMaterialprivate final floatprotected final ArmorItem.TypeFields inherited from class net.minecraft.world.item.ItemBASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZEFields inherited from interface net.minecraft.world.flag.FeatureElementFILTERED_REGISTRIES
- 
Constructor SummaryConstructorsConstructorDescriptionArmorItem(ArmorMaterial p_40386_, ArmorItem.Type p_266831_, Item.Properties p_40388_) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleandispenseArmor(BlockSource p_302421_, ItemStack p_40400_) com.google.common.collect.Multimap<Attribute,AttributeModifier> getDefaultAttributeModifiers(EquipmentSlot p_40390_) intintForge: Use ItemStack sensitive version.floatgetType()booleanisValidRepairItem(ItemStack p_40392_, ItemStack p_40393_) use(Level p_40395_, Player p_40396_, InteractionHand p_40397_) Methods inherited from class net.minecraft.world.item.ItemappendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getRenderPropertiesInternal, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, mineBlock, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, shouldOverrideMultiplayerNbt, toString, useOn, useOnRelease, verifyTagAfterLoadMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.item.EquipableswapWithEquipmentSlotMethods inherited from interface net.minecraft.world.flag.FeatureElementisEnabledMethods inherited from interface net.neoforged.neoforge.common.extensions.IItemExtensioncanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getAttributeModifiers, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultTooltipHideFlags, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, isBookEnchantable, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onStopUsing, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
- 
Field Details- 
ARMOR_MODIFIER_UUID_PER_TYPE
- 
DISPENSE_ITEM_BEHAVIOR
- 
type
- 
defenseprivate final int defense
- 
toughnessprivate final float toughness
- 
knockbackResistanceprotected final float knockbackResistance
- 
material
- 
defaultModifiers
 
- 
- 
Constructor Details- 
ArmorItem
 
- 
- 
Method Details- 
dispenseArmor
- 
getType
- 
getEnchantmentValuepublic int getEnchantmentValue()Description copied from class:ItemForge: Use ItemStack sensitive version.- Overrides:
- getEnchantmentValuein class- Item
 
- 
getMaterial
- 
isValidRepairItem- Overrides:
- isValidRepairItemin class- Item
 
- 
usepublic InteractionResultHolder<ItemStack> use(Level p_40395_, Player p_40396_, InteractionHand p_40397_) 
- 
getDefaultAttributeModifierspublic com.google.common.collect.Multimap<Attribute,AttributeModifier> getDefaultAttributeModifiers(EquipmentSlot p_40390_) - Overrides:
- getDefaultAttributeModifiersin class- Item
 
- 
getDefensepublic int getDefense()
- 
getToughnesspublic float getToughness()
- 
getEquipmentSlot- Specified by:
- getEquipmentSlotin interface- Equipable
 
- 
getEquipSound- Specified by:
- getEquipSoundin interface- Equipable
 
 
-