Package org.bukkit
Enum Class Instrument
- All Implemented Interfaces:
Serializable
,Comparable<Instrument>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionBanjo is normally played when a note block is on top of a hay block.Bass drum is normally played when a note block is on top of a stone-like block.Bass guitar is normally played when a note block is on top of a wooden block.Bell is normally played when a note block is on top of a gold block.Bit is normally played when a note block is on top of a emerald block.Chime is normally played when a note block is on top of a packed ice block.Cow Bell is normally played when a note block is on top of a soul sand block.Creeper is normally played when a creeper head is on top of a note block.Custom head is normally played when a player head is on top of a note block.Didgeridoo is normally played when a note block is on top of a pumpkin block.Dragon is normally played when an Ender Dragon head is on top of a note block.Flute is normally played when a note block is on top of a clay block.Guitar is normally played when a note block is on top of a woolen block.Iron Xylophone is normally played when a note block is on top of a iron block.Piano (Harp) is the standard instrument for a note block.Piglin is normally played when a piglin head is on top of a note block.Pling is normally played when a note block is on top of a glowstone block.Skeleton is normally played when a skeleton skull is on top of a note block.Snare drum is normally played when a note block is on top of a sandy block.Sticks (Hat) are normally played when a note block is on top of a glass block.Wither skeleton is normally played when a wither skeleton skull head is on top of a note block.Xylophone is normally played when a note block is on top of a bone block.Zombie is normally played when a zombie head is on top of a note block. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable Instrument
getByType
(byte type) Deprecated.Magic valuebyte
getType()
Deprecated.Magic valuestatic Instrument
Returns the enum constant of this class with the specified name.static Instrument[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PIANO
Piano (Harp) is the standard instrument for a note block. -
BASS_DRUM
Bass drum is normally played when a note block is on top of a stone-like block. -
SNARE_DRUM
Snare drum is normally played when a note block is on top of a sandy block. -
STICKS
Sticks (Hat) are normally played when a note block is on top of a glass block. -
BASS_GUITAR
Bass guitar is normally played when a note block is on top of a wooden block. -
FLUTE
Flute is normally played when a note block is on top of a clay block. -
BELL
Bell is normally played when a note block is on top of a gold block. -
GUITAR
Guitar is normally played when a note block is on top of a woolen block. -
CHIME
Chime is normally played when a note block is on top of a packed ice block. -
XYLOPHONE
Xylophone is normally played when a note block is on top of a bone block. -
IRON_XYLOPHONE
Iron Xylophone is normally played when a note block is on top of a iron block. -
COW_BELL
Cow Bell is normally played when a note block is on top of a soul sand block. -
DIDGERIDOO
Didgeridoo is normally played when a note block is on top of a pumpkin block. -
BIT
Bit is normally played when a note block is on top of a emerald block. -
BANJO
Banjo is normally played when a note block is on top of a hay block. -
PLING
Pling is normally played when a note block is on top of a glowstone block. -
ZOMBIE
Zombie is normally played when a zombie head is on top of a note block. -
SKELETON
Skeleton is normally played when a skeleton skull is on top of a note block. -
CREEPER
Creeper is normally played when a creeper head is on top of a note block. -
DRAGON
Dragon is normally played when an Ender Dragon head is on top of a note block. -
WITHER_SKELETON
Wither skeleton is normally played when a wither skeleton skull head is on top of a note block. -
PIGLIN
Piglin is normally played when a piglin head is on top of a note block. -
CUSTOM_HEAD
Custom head is normally played when a player head is on top of a note block.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getType
Deprecated.Magic value- Returns:
- The type ID of this instrument.
-
getByType
Deprecated.Magic valueGet an instrument by its type ID.- Parameters:
type
- The type ID- Returns:
- The instrument
-