Uses of Record Class
net.minecraft.world.item.Instrument
Packages that use Instrument
Package
Description
-
Uses of Instrument in net.minecraft.core.registries
Fields in net.minecraft.core.registries with type parameters of type InstrumentModifier and TypeFieldDescriptionstatic final ResourceKey
<Registry<Instrument>> Registries.INSTRUMENT
-
Uses of Instrument in net.minecraft.tags
Fields in net.minecraft.tags with type parameters of type InstrumentModifier and TypeFieldDescriptionstatic final TagKey
<Instrument> InstrumentTags.GOAT_HORNS
static final TagKey
<Instrument> InstrumentTags.REGULAR_GOAT_HORNS
static final TagKey
<Instrument> InstrumentTags.SCREAMING_GOAT_HORNS
Methods in net.minecraft.tags that return types with arguments of type Instrument -
Uses of Instrument in net.minecraft.world.item
Fields in net.minecraft.world.item with type parameters of type InstrumentModifier and TypeFieldDescriptionstatic final ResourceKey
<Instrument> Instruments.ADMIRE_GOAT_HORN
static final ResourceKey
<Instrument> Instruments.CALL_GOAT_HORN
static final com.mojang.serialization.Codec
<Holder<Instrument>> Instrument.CODEC
static final com.mojang.serialization.Codec
<Instrument> Instrument.DIRECT_CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, Instrument> Instrument.DIRECT_STREAM_CODEC
static final ResourceKey
<Instrument> Instruments.DREAM_GOAT_HORN
static final ResourceKey
<Instrument> Instruments.FEEL_GOAT_HORN
static final ResourceKey
<Instrument> Instruments.PONDER_GOAT_HORN
static final ResourceKey
<Instrument> Instruments.SEEK_GOAT_HORN
static final ResourceKey
<Instrument> Instruments.SING_GOAT_HORN
static final StreamCodec
<RegistryFriendlyByteBuf, Holder<Instrument>> Instrument.STREAM_CODEC
static final ResourceKey
<Instrument> Instruments.YEARN_GOAT_HORN
Methods in net.minecraft.world.item that return types with arguments of type InstrumentModifier and TypeMethodDescriptionprivate static ResourceKey
<Instrument> private Optional
<Holder<Instrument>> InstrumentItem.getInstrument
(ItemStack p_220135_, HolderLookup.Provider p_365136_) Methods in net.minecraft.world.item with parameters of type InstrumentModifier and TypeMethodDescriptionprivate static void
InstrumentItem.play
(Level p_220127_, Player p_220128_, Instrument p_220129_) Method parameters in net.minecraft.world.item with type arguments of type InstrumentModifier and TypeMethodDescriptionstatic void
Instruments.bootstrap
(BootstrapContext<Instrument> p_362126_) static ItemStack
InstrumentItem.create
(Item p_220108_, Holder<Instrument> p_220109_) private static void
CreativeModeTabs.generateInstrumentTypes
(CreativeModeTab.Output p_270699_, HolderLookup<Instrument> p_270948_, Item p_270421_, TagKey<Instrument> p_270798_, CreativeModeTab.TabVisibility p_270817_) private static void
CreativeModeTabs.generateInstrumentTypes
(CreativeModeTab.Output p_270699_, HolderLookup<Instrument> p_270948_, Item p_270421_, TagKey<Instrument> p_270798_, CreativeModeTab.TabVisibility p_270817_) static void
Instruments.register
(BootstrapContext<Instrument> p_365273_, ResourceKey<Instrument> p_360712_, Holder<SoundEvent> p_362988_, float p_362590_, float p_363159_) static void
Instruments.register
(BootstrapContext<Instrument> p_365273_, ResourceKey<Instrument> p_360712_, Holder<SoundEvent> p_362988_, float p_362590_, float p_363159_) -
Uses of Instrument in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component with type parameters of type InstrumentModifier and TypeFieldDescriptionprivate final EitherHolder
<Instrument> InstrumentComponent.instrument
The field for theinstrument
record component.Methods in net.minecraft.world.item.component that return types with arguments of type InstrumentModifier and TypeMethodDescriptionInstrumentComponent.instrument()
Returns the value of theinstrument
record component.InstrumentComponent.unwrap
(HolderLookup.Provider p_399530_) Constructor parameters in net.minecraft.world.item.component with type arguments of type InstrumentModifierConstructorDescriptionInstrumentComponent
(Holder<Instrument> p_399918_) InstrumentComponent
(ResourceKey<Instrument> p_399945_) Deprecated.InstrumentComponent
(EitherHolder<Instrument> instrument) Creates an instance of aInstrumentComponent
record class. -
Uses of Instrument in net.minecraft.world.level.storage.loot.functions
Fields in net.minecraft.world.level.storage.loot.functions with type parameters of type InstrumentMethod parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type InstrumentModifier and TypeMethodDescriptionstatic LootItemConditionalFunction.Builder
<?> SetInstrumentFunction.setInstrumentOptions
(TagKey<Instrument> p_231012_) Constructor parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type InstrumentModifierConstructorDescriptionprivate
SetInstrumentFunction
(List<LootItemCondition> p_298993_, TagKey<Instrument> p_231009_)