public enum NoteBlockInstrument extends java.lang.Enum<NoteBlockInstrument> implements IStringSerializable
列挙型定数と説明 |
---|
BANJO |
BASEDRUM |
BASS |
BELL |
BIT |
CHIME |
COW_BELL |
DIDGERIDOO |
FLUTE |
GUITAR |
HARP |
HAT |
IRON_XYLOPHONE |
PLING |
SNARE |
XYLOPHONE |
修飾子とタイプ | メソッドと説明 |
---|---|
static NoteBlockInstrument |
byState(BlockState p_208087_0_) |
java.lang.String |
getName() |
SoundEvent |
getSound() |
static NoteBlockInstrument |
valueOf(java.lang.String name)
指定した名前を持つこの型の列挙型定数を返します。
|
static NoteBlockInstrument[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
public static final NoteBlockInstrument HARP
public static final NoteBlockInstrument BASEDRUM
public static final NoteBlockInstrument SNARE
public static final NoteBlockInstrument HAT
public static final NoteBlockInstrument BASS
public static final NoteBlockInstrument FLUTE
public static final NoteBlockInstrument BELL
public static final NoteBlockInstrument GUITAR
public static final NoteBlockInstrument CHIME
public static final NoteBlockInstrument XYLOPHONE
public static final NoteBlockInstrument IRON_XYLOPHONE
public static final NoteBlockInstrument COW_BELL
public static final NoteBlockInstrument DIDGERIDOO
public static final NoteBlockInstrument BIT
public static final NoteBlockInstrument BANJO
public static final NoteBlockInstrument PLING
public static NoteBlockInstrument[] values()
for(NoteBlockInstrument c: NoteBlockInstrument.values()) System.out.println(c);
public static NoteBlockInstrument valueOf(java.lang.String name)
name
- 返される列挙型定数の名前。java.lang.IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合java.lang.NullPointerException
- 引数がnullの場合public java.lang.String getName()
getName
インタフェース内 IStringSerializable
public SoundEvent getSound()
public static NoteBlockInstrument byState(BlockState p_208087_0_)