Package org.bukkit
Class MusicInstrument
java.lang.Object
org.bukkit.MusicInstrument
- All Implemented Interfaces:
- net.kyori.adventure.key.Keyed,- Translatable,- Keyed
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final MusicInstrumentstatic final MusicInstrumentstatic final MusicInstrumentstatic final MusicInstrumentstatic final MusicInstrumentstatic final MusicInstrumentstatic final MusicInstrumentstatic final MusicInstrument
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic @Nullable MusicInstrumentgetByKey(@NotNull NamespacedKey namespacedKey) Deprecated.Gets the translation key.static @NotNull Collection<MusicInstrument>values()Deprecated.useIterable.iterator().
- 
Field Details- 
PONDER
- 
SING
- 
SEEK
- 
FEEL
- 
ADMIRE
- 
CALL
- 
YEARN
- 
DREAM
 
- 
- 
Constructor Details- 
MusicInstrumentpublic MusicInstrument()
 
- 
- 
Method Details- 
getByKey@Nullable @Deprecated public static @Nullable MusicInstrument getByKey(@NotNull @NotNull NamespacedKey namespacedKey) Deprecated.UseRegistry.get(NamespacedKey)instead.Returns aMusicInstrumentby aNamespacedKey.- Parameters:
- namespacedKey- the key
- Returns:
- the event or null
 
- 
valuesDeprecated.useIterable.iterator().Returns all known MusicInstruments.- Returns:
- the memoryKeys
 
- 
translationKeyDescription copied from interface:net.kyori.adventure.translation.TranslatableGets the translation key.- Specified by:
- translationKeyin interface- Translatable
- Returns:
- the translation key
 
 
- 
Registry.get(NamespacedKey)instead.