Class InstrumentItem

  • All Implemented Interfaces:
    net.fabricmc.fabric.api.item.v1.FabricItem , net.minecraft.world.flag.FeatureElement , net.minecraft.world.level.ItemLike

    
    public final class InstrumentItem
    extends Item
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      InstrumentItem(Item.Properties properties)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      InteractionResult use(Level level, Player player, InteractionHand hand)
      • Methods inherited from class net.minecraft.world.item.Item

        appendHoverText, asItem, builtInRegistryHolder, canDestroyBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getCraftingRemainder, getDefaultInstance, getDefaultMaxStackSize, getDescriptionId, getDestroySpeed, getItemDamageSource, getName, getTooltipImage, getUseAnimation, getUseDuration, hurtEnemy, interactLivingEntity, inventoryTick, isBarVisible, isCorrectToolForDrops, isFoil, mineBlock, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, requiredFeatures, shouldPrintOpWarning, toString, useOn, useOnRelease
      • Methods inherited from class net.minecraft.world.flag.FeatureElement

        isEnabled
      • Methods inherited from class net.fabricmc.fabric.api.item.v1.FabricItem

        allowComponentsUpdateAnimation, allowContinuingBlockBreaking, canBeEnchantedWith, getCraftingRemainder, getCreatorNamespace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InstrumentItem

        InstrumentItem(Item.Properties properties)
    • Method Detail

      • use

         InteractionResult use(Level level, Player player, InteractionHand hand)