类 InstrumentItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.InstrumentItem
- 所有已实现的接口:
FeatureElement
,ItemLike
,IForgeItem
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.item.Item
Item.Properties, Item.TooltipContext
-
字段概要
字段从类继承的字段 net.minecraft.world.item.Item
ABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_ID, BASE_ATTACK_SPEED_ID, BY_BLOCK, CODEC, DEFAULT_MAX_STACK_SIZE, descriptionId, MAX_BAR_WIDTH, STREAM_CODEC
从接口继承的字段 net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
appendHoverText
(ItemStack p_220115_, Item.TooltipContext p_328884_, List<Component> p_220117_, TooltipFlag p_220118_) static ItemStack
create
(Item p_220108_, Holder<Instrument> p_220109_) private Optional
<Holder<Instrument>> getInstrument
(ItemStack p_220135_, HolderLookup.Provider p_365790_) getUseAnimation
(ItemStack p_220133_) int
getUseDuration
(ItemStack p_220131_, LivingEntity p_345360_) private static void
play
(Level p_220127_, Player p_220128_, Instrument p_220129_) use
(Level p_220123_, Player p_220124_, InteractionHand p_220125_) 从类继承的方法 net.minecraft.world.item.Item
asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainder, getDamageSource, getDefaultInstance, getDefaultMaxStackSize, getDescriptionId, getDestroySpeed, getId, getName, getName, getPlayerPOVHitResult, getRenderPropertiesInternal, getTooltipImage, hurtEnemy, initializeClient, interactLivingEntity, inventoryTick, isBarVisible, isCorrectToolForDrops, isFoil, mineBlock, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, requiredFeatures, shouldPrintOpWarning, toString, useOn, useOnRelease, verifyComponentsAfterLoad
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraft.world.flag.FeatureElement
isEnabled
从接口继承的方法 net.minecraftforge.common.extensions.IForgeItem
canApplyAtEnchantingTable, canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getBurnTime, getCapabilityProvider, getCapabilityProvider, getCraftingRemainder, getCreatorModId, getDefaultTooltipHideFlags, getEntityLifespan, getEquipmentSlot, getHighlightTip, getSweepHitBox, hasCustomEntity, isBookEnchantable, isMonsterDisguise, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onInventoryTick, onItemUseFirst, onLeftClickEntity, onStopUsing, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
-
字段详细资料
-
instruments
-
-
构造器详细资料
-
InstrumentItem
-
-
方法详细资料
-
appendHoverText
public void appendHoverText(ItemStack p_220115_, Item.TooltipContext p_328884_, List<Component> p_220117_, TooltipFlag p_220118_) - 覆盖:
appendHoverText
在类中Item
-
create
-
use
-
getUseDuration
- 覆盖:
getUseDuration
在类中Item
-
getInstrument
private Optional<Holder<Instrument>> getInstrument(ItemStack p_220135_, HolderLookup.Provider p_365790_) -
getUseAnimation
- 覆盖:
getUseAnimation
在类中Item
-
play
-