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 Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable
StringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable>, StringRepresentable.StringRepresentableCodec<S extends StringRepresentable>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
private final Holder<SoundEvent>
private final NoteBlockInstrument.Type
Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD
-
Constructor Summary
ModifierConstructorDescriptionprivate
NoteBlockInstrument
(String p_263425_, Holder<SoundEvent> p_263341_, NoteBlockInstrument.Type p_263322_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
static NoteBlockInstrument
Returns 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
-
NoteBlockInstrument
private NoteBlockInstrument(String p_263425_, Holder<SoundEvent> p_263341_, NoteBlockInstrument.Type p_263322_)
-
-
Method Details
-
values
Returns 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
-
valueOf
Returns 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 nameNullPointerException
- if the argument is null
-
getSerializedName
- Specified by:
getSerializedName
in interfaceStringRepresentable
-
getSoundEvent
-
isTunable
public boolean isTunable() -
hasCustomSound
public boolean hasCustomSound() -
worksAboveNoteBlock
public boolean worksAboveNoteBlock()
-