Package org.bukkit
Class MusicInstrument
java.lang.Object
org.bukkit.MusicInstrument
- All Implemented Interfaces:
- net.kyori.adventure.key.Keyed,- Keyed
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final MusicInstrumentstatic final MusicInstrumentstatic final MusicInstrumentstatic final MusicInstrumentstatic final MusicInstrumentstatic final MusicInstrumentstatic final MusicInstrumentstatic final MusicInstrument
- 
Method SummaryModifier and TypeMethodDescriptionstatic @Nullable MusicInstrumentgetByKey(@NotNull NamespacedKey namespacedKey) Returns aMusicInstrumentby aNamespacedKey.getKey()Return the namespaced identifier for this object.static @NotNull Collection<MusicInstrument>values()Returns all known MusicInstruments.
- 
Field Details- 
PONDER
- 
SING
- 
SEEK
- 
FEEL
- 
ADMIRE
- 
CALL
- 
YEARN
- 
DREAM
 
- 
- 
Method Details- 
getKeyDescription copied from interface:KeyedReturn the namespaced identifier for this object.
- 
getByKey@Nullable public static @Nullable MusicInstrument getByKey(@NotNull @NotNull NamespacedKey namespacedKey) Returns aMusicInstrumentby aNamespacedKey.- Parameters:
- namespacedKey- the key
- Returns:
- the event or null
 
- 
valuesReturns all known MusicInstruments.- Returns:
- the memoryKeys
 
 
-