Enum Class NoteBlockInstrument
java.lang.Object
java.lang.Enum<NoteBlockInstrument>
net.minecraft.world.level.block.state.properties.NoteBlockInstrument
- All Implemented Interfaces:
- Serializable,- Comparable<NoteBlockInstrument>,- Constable,- StringRepresentable
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentableStringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable>
- 
Enum Constant SummaryEnum Constants
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Stringprivate final Holder<SoundEvent>private final NoteBlockInstrument.TypeFields inherited from interface net.minecraft.util.StringRepresentablePRE_BUILT_MAP_THRESHOLD
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateNoteBlockInstrument(String p_263425_, Holder<SoundEvent> p_263341_, NoteBlockInstrument.Type p_263322_) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbooleanstatic NoteBlockInstrumentReturns the enum constant of this class with the specified name.static NoteBlockInstrument[]values()Returns an array containing the constants of this enum class, in the order they are declared.boolean
- 
Enum Constant Details- 
HARP
- 
BASEDRUM
- 
SNARE
- 
HAT
- 
BASS
- 
FLUTE
- 
BELL
- 
GUITAR
- 
CHIME
- 
XYLOPHONE
- 
IRON_XYLOPHONE
- 
COW_BELL
- 
DIDGERIDOO
- 
BIT
- 
BANJO
- 
PLING
- 
ZOMBIE
- 
SKELETON
- 
CREEPER
- 
DRAGON
- 
WITHER_SKELETON
- 
PIGLIN
- 
CUSTOM_HEAD
 
- 
- 
Field Details- 
name
- 
soundEvent
- 
type
 
- 
- 
Constructor Details- 
NoteBlockInstrumentprivate NoteBlockInstrument(String p_263425_, Holder<SoundEvent> p_263341_, NoteBlockInstrument.Type p_263322_) 
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
getSerializedName- Specified by:
- getSerializedNamein interface- StringRepresentable
 
- 
getSoundEvent
- 
isTunablepublic boolean isTunable()
- 
hasCustomSoundpublic boolean hasCustomSound()
- 
worksAboveNoteBlockpublic boolean worksAboveNoteBlock()
 
-