类 ArmorItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.ArmorItem
- 所有已实现的接口:
FeatureElement
,Equipable
,Vanishable
,ItemLike
,IForgeItem
- 直接已知子类:
DyeableArmorItem
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.world.item.Item
Item.Properties
-
字段概要
字段修饰符和类型字段说明private static final EnumMap<ArmorItem.Type,
UUID> private final com.google.common.collect.Multimap<Attribute,
AttributeModifier> private final int
static final DispenseItemBehavior
protected final float
protected final ArmorMaterial
private final float
protected final ArmorItem.Type
从类继承的字段 net.minecraft.world.item.Item
BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZE
从接口继承的字段 net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static boolean
dispenseArmor
(BlockSource pSource, ItemStack pStack) com.google.common.collect.Multimap<Attribute,
AttributeModifier> getDefaultAttributeModifiers
(EquipmentSlot pEquipmentSlot) int
int
Forge: Use ItemStack sensitive version.float
getType()
boolean
isValidRepairItem
(ItemStack pToRepair, ItemStack pRepair) use
(Level pLevel, Player pPlayer, InteractionHand pHand) 从类继承的方法 net.minecraft.world.item.Item
appendHoverText, 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, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, shouldOverrideMultiplayerNbt, toString, useOn, useOnRelease, verifyTagAfterLoad
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraft.world.item.Equipable
swapWithEquipmentSlot
从接口继承的方法 net.minecraft.world.flag.FeatureElement
isEnabled
从接口继承的方法 net.minecraftforge.common.extensions.IForgeItem
canApplyAtEnchantingTable, 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, getShareTag, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, initCapabilities, isBookEnchantable, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onStopUsing, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
-
字段详细资料
-
ARMOR_MODIFIER_UUID_PER_TYPE
-
DISPENSE_ITEM_BEHAVIOR
-
type
-
defense
private final int defense -
toughness
private final float toughness -
knockbackResistance
protected final float knockbackResistance -
material
-
defaultModifiers
-
-
构造器详细资料
-
ArmorItem
-
-
方法详细资料
-
dispenseArmor
-
getType
-
getEnchantmentValue
public int getEnchantmentValue()从类复制的说明:Item
Forge: Use ItemStack sensitive version.- 覆盖:
getEnchantmentValue
在类中Item
-
getMaterial
-
isValidRepairItem
- 覆盖:
isValidRepairItem
在类中Item
-
use
-
getDefaultAttributeModifiers
public com.google.common.collect.Multimap<Attribute,AttributeModifier> getDefaultAttributeModifiers(EquipmentSlot pEquipmentSlot) - 覆盖:
getDefaultAttributeModifiers
在类中Item
-
getDefense
public int getDefense() -
getToughness
public float getToughness() -
getEquipmentSlot
- 指定者:
getEquipmentSlot
在接口中Equipable
-
getEquipSound
- 指定者:
getEquipSound
在接口中Equipable
-