public static enum BlockBehaviorNoteblock.Instrument extends Enum<BlockBehaviorNoteblock.Instrument>
| Enum Constant and Description |
|---|
BANJO |
BASS |
BASS_DRUM |
CHIME |
COW_BELL |
DIDGERIDOO |
DRUM |
ELECTRIC_PIANO |
FLUTE |
GLOCKENSPIEL |
GUITAR |
PIANO |
SQUARE_WAVE |
STICKS |
VIBRAPHONE |
XYLOPHONE |
| Modifier and Type | Method and Description |
|---|---|
Sound |
getSound() |
static BlockBehaviorNoteblock.Instrument |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BlockBehaviorNoteblock.Instrument[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlockBehaviorNoteblock.Instrument PIANO
public static final BlockBehaviorNoteblock.Instrument BASS_DRUM
public static final BlockBehaviorNoteblock.Instrument DRUM
public static final BlockBehaviorNoteblock.Instrument STICKS
public static final BlockBehaviorNoteblock.Instrument BASS
public static final BlockBehaviorNoteblock.Instrument GLOCKENSPIEL
public static final BlockBehaviorNoteblock.Instrument FLUTE
public static final BlockBehaviorNoteblock.Instrument CHIME
public static final BlockBehaviorNoteblock.Instrument GUITAR
public static final BlockBehaviorNoteblock.Instrument XYLOPHONE
public static final BlockBehaviorNoteblock.Instrument VIBRAPHONE
public static final BlockBehaviorNoteblock.Instrument COW_BELL
public static final BlockBehaviorNoteblock.Instrument DIDGERIDOO
public static final BlockBehaviorNoteblock.Instrument SQUARE_WAVE
public static final BlockBehaviorNoteblock.Instrument BANJO
public static final BlockBehaviorNoteblock.Instrument ELECTRIC_PIANO
public static BlockBehaviorNoteblock.Instrument[] values()
for (BlockBehaviorNoteblock.Instrument c : BlockBehaviorNoteblock.Instrument.values()) System.out.println(c);
public static BlockBehaviorNoteblock.Instrument valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Sound getSound()
Copyright © 2020. All rights reserved.