Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.Instrument Enum Reference

Public Member Functions

byte getType ()
 

Static Public Member Functions

static Instrument getByType (final byte type)
 
 [static initializer]
 

Public Attributes

 PIANO =(0x0)
 
 BASS_DRUM =(0x1)
 
 SNARE_DRUM =(0x2)
 
 STICKS =(0x3)
 
 BASS_GUITAR =(0x4)
 

Detailed Description

Definition at line 7 of file Instrument.java.

Member Function Documentation

static Instrument org.bukkit.Instrument.getByType ( final byte  type)
static

Get an instrument by its type ID.

Parameters
typeThe type ID
Returns
The instrument
Deprecated:
Magic value

Definition at line 58 of file Instrument.java.

58  {
59  return BY_DATA.get(type);
60  }
byte org.bukkit.Instrument.getType ( )
Returns
The type ID of this instrument.
Deprecated:
Magic value

Definition at line 46 of file Instrument.java.

46  {
47  return this.type;
48  }

Member Data Documentation

org.bukkit.Instrument.BASS_DRUM =(0x1)

Bass drum is normally played when a note block is on top of a stone-like block

Definition at line 17 of file Instrument.java.

org.bukkit.Instrument.BASS_GUITAR =(0x4)

Bass guitar is normally played when a note block is on top of a wooden block.

Definition at line 32 of file Instrument.java.

org.bukkit.Instrument.PIANO =(0x0)

Piano is the standard instrument for a note block.

Definition at line 12 of file Instrument.java.

org.bukkit.Instrument.SNARE_DRUM =(0x2)

Snare drum is normally played when a note block is on top of a sandy block.

Definition at line 22 of file Instrument.java.

org.bukkit.Instrument.STICKS =(0x3)

Sticks are normally played when a note block is on top of a glass block.

Definition at line 27 of file Instrument.java.


The documentation for this enum was generated from the following file: