Package net.minecraft.world.item
Class ShieldItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.ShieldItem
- All Implemented Interfaces:
- FeatureElement,- Equipable,- Vanishable,- ItemLike,- IItemExtension
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.item.ItemItem.Properties
- 
Field SummaryFieldsFields 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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidappendHoverText(ItemStack p_43094_, Level p_43095_, List<Component> p_43096_, TooltipFlag p_43097_) booleancanPerformAction(ItemStack stack, ToolAction toolAction) Queries if an item can perform the given action.static DyeColorgetDescriptionId(ItemStack p_43109_) getUseAnimation(ItemStack p_43105_) intgetUseDuration(ItemStack p_43107_) booleanisValidRepairItem(ItemStack p_43091_, ItemStack p_43092_) use(Level p_43099_, Player p_43100_, InteractionHand p_43101_) Methods inherited from class net.minecraft.world.item.ItemasItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getRenderPropertiesInternal, getTooltipImage, 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.EquipablegetEquipSound, swapWithEquipmentSlotMethods inherited from interface net.minecraft.world.flag.FeatureElementisEnabledMethods inherited from interface net.neoforged.neoforge.common.extensions.IItemExtensioncanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, 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- 
EFFECTIVE_BLOCK_DELAYpublic static final int EFFECTIVE_BLOCK_DELAY- See Also:
 
- 
MINIMUM_DURABILITY_DAMAGEpublic static final float MINIMUM_DURABILITY_DAMAGE- See Also:
 
- 
TAG_BASE_COLOR- See Also:
 
 
- 
- 
Constructor Details- 
ShieldItem
 
- 
- 
Method Details- 
getDescriptionId- Overrides:
- getDescriptionIdin class- Item
 
- 
appendHoverTextpublic void appendHoverText(ItemStack p_43094_, @Nullable Level p_43095_, List<Component> p_43096_, TooltipFlag p_43097_) - Overrides:
- appendHoverTextin class- Item
 
- 
getUseAnimation- Overrides:
- getUseAnimationin class- Item
 
- 
getUseDuration- Overrides:
- getUseDurationin class- Item
 
- 
usepublic InteractionResultHolder<ItemStack> use(Level p_43099_, Player p_43100_, InteractionHand p_43101_) 
- 
isValidRepairItem- Overrides:
- isValidRepairItemin class- Item
 
- 
getColor
- 
canPerformActionDescription copied from interface:IItemExtensionQueries if an item can perform the given action. SeeToolActionsfor a description of each stock action- Specified by:
- canPerformActionin interface- IItemExtension
- Parameters:
- stack- The stack being used
- toolAction- The action being queried
- Returns:
- True if the stack can perform the action
 
- 
getEquipmentSlot- Specified by:
- getEquipmentSlotin interface- Equipable
 
 
-