Package org.bukkit
Enum Instrument
- All Implemented Interfaces:
- Serializable,- Comparable<Instrument>,- java.lang.constant.Constable
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum 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.Didgeridoo is normally played when a note block is on top of a pumpkin 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 is the standard instrument for a note block.Pling is normally played when a note block is on top of a glowstone block.Snare drum is normally played when a note block is on top of a sandy block.Sticks are normally played when a note block is on top of a glass block.Xylophone is normally played when a note block is on top of a bone block.
- 
Method SummaryModifier and TypeMethodDescriptionstatic InstrumentgetByType(byte type) Deprecated.Magic valuebytegetType()Deprecated.Magic valuestatic InstrumentReturns the enum constant of this type with the specified name.static Instrument[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
PIANOPiano is the standard instrument for a note block.
- 
BASS_DRUMBass drum is normally played when a note block is on top of a stone-like block.
- 
SNARE_DRUMSnare drum is normally played when a note block is on top of a sandy block.
- 
STICKSSticks are normally played when a note block is on top of a glass block.
- 
BASS_GUITARBass guitar is normally played when a note block is on top of a wooden block.
- 
FLUTEFlute is normally played when a note block is on top of a clay block.
- 
BELLBell is normally played when a note block is on top of a gold block.
- 
GUITARGuitar is normally played when a note block is on top of a woolen block.
- 
CHIMEChime is normally played when a note block is on top of a packed ice block.
- 
XYLOPHONEXylophone is normally played when a note block is on top of a bone block.
- 
IRON_XYLOPHONEIron Xylophone is normally played when a note block is on top of a iron block.
- 
COW_BELLCow Bell is normally played when a note block is on top of a soul sand block.
- 
DIDGERIDOODidgeridoo is normally played when a note block is on top of a pumpkin block.
- 
BITBit is normally played when a note block is on top of a emerald block.
- 
BANJOBanjo is normally played when a note block is on top of a hay block.
- 
PLINGPling is normally played when a note block is on top of a glowstone block.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
getTypeDeprecated.Magic value- Returns:
- The type ID of this instrument.
 
- 
getByTypeDeprecated.Magic valueGet an instrument by its type ID.- Parameters:
- type- The type ID
- Returns:
- The instrument
 
 
-