Package org.bukkit
Class MusicInstrument
java.lang.Object
org.bukkit.MusicInstrument
- All Implemented Interfaces:
net.kyori.adventure.key.Keyed
,Translatable
,Keyed
-
Field Summary
Modifier and TypeFieldDescriptionstatic final MusicInstrument
static final MusicInstrument
static final MusicInstrument
static final MusicInstrument
static final MusicInstrument
static final MusicInstrument
static final MusicInstrument
static final MusicInstrument
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable MusicInstrument
getByKey
(@NotNull NamespacedKey namespacedKey) Returns aMusicInstrument
by aNamespacedKey
.getKey()
Return the namespaced identifier for this object.Gets the translation key.static @NotNull Collection<MusicInstrument>
values()
Returns all known MusicInstruments.
-
Field Details
-
PONDER
-
SING
-
SEEK
-
FEEL
-
ADMIRE
-
CALL
-
YEARN
-
DREAM
-
-
Method Details
-
getKey
Description copied from interface:Keyed
Return the namespaced identifier for this object. -
getByKey
@Nullable public static @Nullable MusicInstrument getByKey(@NotNull @NotNull NamespacedKey namespacedKey) Returns aMusicInstrument
by aNamespacedKey
.- Parameters:
namespacedKey
- the key- Returns:
- the event or null
-
values
Returns all known MusicInstruments.- Returns:
- the memoryKeys
-
translationKey
Description copied from interface:net.kyori.adventure.translation.Translatable
Gets the translation key.- Specified by:
translationKey
in interfaceTranslatable
- Returns:
- the translation key
-