Package net.minecraft.item
Class ArmorItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.ArmorItem
- All Implemented Interfaces:
ItemConvertible,Vanishable,Wearable
- Direct Known Subclasses:
DyeableArmorItem
public class ArmorItem extends Item implements Wearable
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description private Multimap<EntityAttribute,EntityAttributeModifier>attributeModifiersstatic DispenserBehaviorDISPENSER_BEHAVIORprotected floatknockbackResistanceprivate static UUID[]MODIFIERSprivate intprotectionprotected EquipmentSlotslotprivate floattoughnessprotected ArmorMaterialtypeFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, group, RANDOM -
Constructor Summary
Constructors Constructor Description ArmorItem(ArmorMaterial material, EquipmentSlot slot, Item.Settings settings) -
Method Summary
Modifier and Type Method Description booleancanRepair(ItemStack stack, ItemStack ingredient)static booleandispenseArmor(BlockPointer pointer, ItemStack armor)Multimap<EntityAttribute,EntityAttributeModifier>getAttributeModifiers(EquipmentSlot slot)intgetEnchantability()ArmorMaterialgetMaterial()intgetProtection()EquipmentSlotgetSlotType()floatmethod_26353()TypedActionResult<ItemStack>use(World world, PlayerEntity user, Hand hand)Methods inherited from class net.minecraft.item.Item
appendStacks, appendTooltip, asItem, byRawId, canMine, damage, finishUsing, fromBlock, getDrinkSound, getEatSound, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getStackForRender, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFireproof, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, onStoppedUsing, postHit, postMine, postProcessTag, rayTrace, shouldSyncTagToClient, toString, usageTick, useOnBlock, useOnEntity
-
Field Details
-
MODIFIERS
-
DISPENSER_BEHAVIOR
-
slot
-
protection
private final int protection -
toughness
private final float toughness -
knockbackResistance
protected final float knockbackResistance -
type
-
attributeModifiers
-
-
Constructor Details
-
Method Details
-
dispenseArmor
-
getSlotType
-
getEnchantability
public int getEnchantability()- Overrides:
getEnchantabilityin classItem
-
getMaterial
-
canRepair
-
use
-
getAttributeModifiers
public Multimap<EntityAttribute,EntityAttributeModifier> getAttributeModifiers(EquipmentSlot slot)- Overrides:
getAttributeModifiersin classItem
-
getProtection
public int getProtection() -
method_26353
public float method_26353()
-