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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable MusicInstrument
getByKey
(@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
-
MusicInstrument
public MusicInstrument()
-
-
Method Details
-
getByKey
@Nullable @Deprecated public static @Nullable MusicInstrument getByKey(@NotNull @NotNull NamespacedKey namespacedKey) Deprecated.UseRegistry.get(NamespacedKey)
instead.Returns aMusicInstrument
by aNamespacedKey
.- Parameters:
namespacedKey
- the key- Returns:
- the event or null
-
values
Deprecated.useIterable.iterator()
.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
-
Registry.get(NamespacedKey)
instead.