Package org.bukkit
Class MusicInstrument
java.lang.Object
org.bukkit.MusicInstrument
- All Implemented Interfaces:
Keyed
,RegistryAware
-
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 MusicInstrument
getByKey
(NamespacedKey namespacedKey) Deprecated.abstract NamespacedKey
getKey()
Deprecated.A key might not always be present, useRegistryAware.getKeyOrThrow()
instead.static Collection
<MusicInstrument> values()
Deprecated.useIterable.iterator()
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bukkit.registry.RegistryAware
getKeyOrNull, getKeyOrThrow, isRegistered
-
Field Details
-
PONDER_GOAT_HORN
-
SING_GOAT_HORN
-
SEEK_GOAT_HORN
-
FEEL_GOAT_HORN
-
ADMIRE_GOAT_HORN
-
CALL_GOAT_HORN
-
YEARN_GOAT_HORN
-
DREAM_GOAT_HORN
-
-
Constructor Details
-
MusicInstrument
public MusicInstrument()
-
-
Method Details
-
getKey
Deprecated.A key might not always be present, useRegistryAware.getKeyOrThrow()
instead.Return the namespaced identifier for this object. -
getByKey
@Nullable @Deprecated(since="1.20.1") public static MusicInstrument getByKey(@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
-
Registry.get(NamespacedKey)
instead.