public enum Instrument extends Enum<Instrument>
列挙型定数と説明 |
---|
BASS_DRUM
Bass drum is normally played when a note block is on top of a
stone-like block
|
BASS_GUITAR
Bass guitar is normally played when a note block is on top of a wooden
block.
|
PIANO
Piano is the standard instrument for a note block.
|
SNARE_DRUM
Snare drum is normally played when a note block is on top of a sandy
block.
|
STICKS
Sticks are normally played when a note block is on top of a glass
block.
|
修飾子とタイプ | メソッドと説明 |
---|---|
static Instrument |
getByType(byte type)
非推奨です。
Magic value
|
byte |
getType()
非推奨です。
Magic value
|
static Instrument |
valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。
|
static Instrument[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
public static final Instrument PIANO
public static final Instrument BASS_DRUM
public static final Instrument SNARE_DRUM
public static final Instrument STICKS
public static final Instrument BASS_GUITAR
public static Instrument[] values()
for(Instrument c: Instrument.values()) System.out.println(c);
public static Instrument valueOf(String name)
name
- 返される列挙型定数の名前。IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合NullPointerException
- 引数がnullの場合@Deprecated public byte getType()
@Deprecated public static Instrument getByType(byte type)
type
- The type IDCopyright © 2016. All rights reserved.