Package net.minecraft.block.enums
Enum Class NoteBlockInstrument
- All Implemented Interfaces:
Serializable,Comparable<NoteBlockInstrument>,Constable,StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/block/enums/NoteBlockInstrumentintermediary net/minecraft/class_2766official ekn
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final RegistryEntry<SoundEvent> private final NoteBlockInstrument.TypeFields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateNoteBlockInstrument(String name, RegistryEntry<SoundEvent> sound, NoteBlockInstrument.Type type) -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.booleanReturns whether note blocks playing this instrument can change its pitch.getSound()booleanReturns whether note blocks playing this instrument should determine the sound from skulls above them.booleanstatic 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.
-
Enum Constant Details
-
HARP
- Mappings:
Namespace Name Mixin selector named HARPLnet/minecraft/block/enums/NoteBlockInstrument;HARP:Lnet/minecraft/block/enums/NoteBlockInstrument;intermediary field_12648Lnet/minecraft/class_2766;field_12648:Lnet/minecraft/class_2766;official aLekn;a:Lekn;
-
BASEDRUM
- Mappings:
Namespace Name Mixin selector named BASEDRUMLnet/minecraft/block/enums/NoteBlockInstrument;BASEDRUM:Lnet/minecraft/block/enums/NoteBlockInstrument;intermediary field_12653Lnet/minecraft/class_2766;field_12653:Lnet/minecraft/class_2766;official bLekn;b:Lekn;
-
SNARE
- Mappings:
Namespace Name Mixin selector named SNARELnet/minecraft/block/enums/NoteBlockInstrument;SNARE:Lnet/minecraft/block/enums/NoteBlockInstrument;intermediary field_12643Lnet/minecraft/class_2766;field_12643:Lnet/minecraft/class_2766;official cLekn;c:Lekn;
-
HAT
- Mappings:
Namespace Name Mixin selector named HATLnet/minecraft/block/enums/NoteBlockInstrument;HAT:Lnet/minecraft/block/enums/NoteBlockInstrument;intermediary field_12645Lnet/minecraft/class_2766;field_12645:Lnet/minecraft/class_2766;official dLekn;d:Lekn;
-
BASS
- Mappings:
Namespace Name Mixin selector named BASSLnet/minecraft/block/enums/NoteBlockInstrument;BASS:Lnet/minecraft/block/enums/NoteBlockInstrument;intermediary field_12651Lnet/minecraft/class_2766;field_12651:Lnet/minecraft/class_2766;official eLekn;e:Lekn;
-
FLUTE
- Mappings:
Namespace Name Mixin selector named FLUTELnet/minecraft/block/enums/NoteBlockInstrument;FLUTE:Lnet/minecraft/block/enums/NoteBlockInstrument;intermediary field_12650Lnet/minecraft/class_2766;field_12650:Lnet/minecraft/class_2766;official fLekn;f:Lekn;
-
BELL
- Mappings:
Namespace Name Mixin selector named BELLLnet/minecraft/block/enums/NoteBlockInstrument;BELL:Lnet/minecraft/block/enums/NoteBlockInstrument;intermediary field_12644Lnet/minecraft/class_2766;field_12644:Lnet/minecraft/class_2766;official gLekn;g:Lekn;
-
GUITAR
- Mappings:
Namespace Name Mixin selector named GUITARLnet/minecraft/block/enums/NoteBlockInstrument;GUITAR:Lnet/minecraft/block/enums/NoteBlockInstrument;intermediary field_12654Lnet/minecraft/class_2766;field_12654:Lnet/minecraft/class_2766;official hLekn;h:Lekn;
-
CHIME
- Mappings:
Namespace Name Mixin selector named CHIMELnet/minecraft/block/enums/NoteBlockInstrument;CHIME:Lnet/minecraft/block/enums/NoteBlockInstrument;intermediary field_12647Lnet/minecraft/class_2766;field_12647:Lnet/minecraft/class_2766;official iLekn;i:Lekn;
-
XYLOPHONE
- Mappings:
Namespace Name Mixin selector named XYLOPHONELnet/minecraft/block/enums/NoteBlockInstrument;XYLOPHONE:Lnet/minecraft/block/enums/NoteBlockInstrument;intermediary field_12655Lnet/minecraft/class_2766;field_12655:Lnet/minecraft/class_2766;official jLekn;j:Lekn;
-
IRON_XYLOPHONE
- Mappings:
Namespace Name Mixin selector named IRON_XYLOPHONELnet/minecraft/block/enums/NoteBlockInstrument;IRON_XYLOPHONE:Lnet/minecraft/block/enums/NoteBlockInstrument;intermediary field_18284Lnet/minecraft/class_2766;field_18284:Lnet/minecraft/class_2766;official kLekn;k:Lekn;
-
COW_BELL
- Mappings:
Namespace Name Mixin selector named COW_BELLLnet/minecraft/block/enums/NoteBlockInstrument;COW_BELL:Lnet/minecraft/block/enums/NoteBlockInstrument;intermediary field_18285Lnet/minecraft/class_2766;field_18285:Lnet/minecraft/class_2766;official lLekn;l:Lekn;
-
DIDGERIDOO
- Mappings:
Namespace Name Mixin selector named DIDGERIDOOLnet/minecraft/block/enums/NoteBlockInstrument;DIDGERIDOO:Lnet/minecraft/block/enums/NoteBlockInstrument;intermediary field_18286Lnet/minecraft/class_2766;field_18286:Lnet/minecraft/class_2766;official mLekn;m:Lekn;
-
BIT
- Mappings:
Namespace Name Mixin selector named BITLnet/minecraft/block/enums/NoteBlockInstrument;BIT:Lnet/minecraft/block/enums/NoteBlockInstrument;intermediary field_18287Lnet/minecraft/class_2766;field_18287:Lnet/minecraft/class_2766;official nLekn;n:Lekn;
-
BANJO
- Mappings:
Namespace Name Mixin selector named BANJOLnet/minecraft/block/enums/NoteBlockInstrument;BANJO:Lnet/minecraft/block/enums/NoteBlockInstrument;intermediary field_18288Lnet/minecraft/class_2766;field_18288:Lnet/minecraft/class_2766;official oLekn;o:Lekn;
-
PLING
- Mappings:
Namespace Name Mixin selector named PLINGLnet/minecraft/block/enums/NoteBlockInstrument;PLING:Lnet/minecraft/block/enums/NoteBlockInstrument;intermediary field_18289Lnet/minecraft/class_2766;field_18289:Lnet/minecraft/class_2766;official pLekn;p:Lekn;
-
ZOMBIE
- Mappings:
Namespace Name Mixin selector named ZOMBIELnet/minecraft/block/enums/NoteBlockInstrument;ZOMBIE:Lnet/minecraft/block/enums/NoteBlockInstrument;intermediary field_41324Lnet/minecraft/class_2766;field_41324:Lnet/minecraft/class_2766;official qLekn;q:Lekn;
-
SKELETON
- Mappings:
Namespace Name Mixin selector named SKELETONLnet/minecraft/block/enums/NoteBlockInstrument;SKELETON:Lnet/minecraft/block/enums/NoteBlockInstrument;intermediary field_41325Lnet/minecraft/class_2766;field_41325:Lnet/minecraft/class_2766;official rLekn;r:Lekn;
-
CREEPER
- Mappings:
Namespace Name Mixin selector named CREEPERLnet/minecraft/block/enums/NoteBlockInstrument;CREEPER:Lnet/minecraft/block/enums/NoteBlockInstrument;intermediary field_41326Lnet/minecraft/class_2766;field_41326:Lnet/minecraft/class_2766;official sLekn;s:Lekn;
-
DRAGON
- Mappings:
Namespace Name Mixin selector named DRAGONLnet/minecraft/block/enums/NoteBlockInstrument;DRAGON:Lnet/minecraft/block/enums/NoteBlockInstrument;intermediary field_41327Lnet/minecraft/class_2766;field_41327:Lnet/minecraft/class_2766;official tLekn;t:Lekn;
-
WITHER_SKELETON
- Mappings:
Namespace Name Mixin selector named WITHER_SKELETONLnet/minecraft/block/enums/NoteBlockInstrument;WITHER_SKELETON:Lnet/minecraft/block/enums/NoteBlockInstrument;intermediary field_41328Lnet/minecraft/class_2766;field_41328:Lnet/minecraft/class_2766;official uLekn;u:Lekn;
-
PIGLIN
- Mappings:
Namespace Name Mixin selector named PIGLINLnet/minecraft/block/enums/NoteBlockInstrument;PIGLIN:Lnet/minecraft/block/enums/NoteBlockInstrument;intermediary field_41329Lnet/minecraft/class_2766;field_41329:Lnet/minecraft/class_2766;official vLekn;v:Lekn;
-
CUSTOM_HEAD
- Mappings:
Namespace Name Mixin selector named CUSTOM_HEADLnet/minecraft/block/enums/NoteBlockInstrument;CUSTOM_HEAD:Lnet/minecraft/block/enums/NoteBlockInstrument;intermediary field_41604Lnet/minecraft/class_2766;field_41604:Lnet/minecraft/class_2766;official wLekn;w:Lekn;
-
-
Field Details
-
name
- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/block/enums/NoteBlockInstrument;name:Ljava/lang/String;intermediary field_12646Lnet/minecraft/class_2766;field_12646:Ljava/lang/String;official xLekn;x:Ljava/lang/String;
-
sound
- Mappings:
Namespace Name Mixin selector named soundLnet/minecraft/block/enums/NoteBlockInstrument;sound:Lnet/minecraft/registry/entry/RegistryEntry;intermediary field_12649Lnet/minecraft/class_2766;field_12649:Lnet/minecraft/class_6880;official yLekn;y:Ljk;
-
type
- Mappings:
Namespace Name Mixin selector named typeLnet/minecraft/block/enums/NoteBlockInstrument;type:Lnet/minecraft/block/enums/NoteBlockInstrument$Type;intermediary field_41605Lnet/minecraft/class_2766;field_41605:Lnet/minecraft/class_2766$class_7994;official zLekn;z:Lekn$a;
-
-
Constructor Details
-
NoteBlockInstrument
private NoteBlockInstrument(String name, RegistryEntry<SoundEvent> sound, NoteBlockInstrument.Type type) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/enums/NoteBlockInstrument;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/block/enums/NoteBlockInstrument$Type;)Vintermediary <init>Lnet/minecraft/class_2766;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_6880;Lnet/minecraft/class_2766$class_7994;)Vofficial <init>Lekn;<init>(Ljava/lang/String;ILjava/lang/String;Ljk;Lekn$a;)V
-
-
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
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asStringin interfaceStringIdentifiable- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLbgg;c()Ljava/lang/String;
-
getSound
- Mappings:
Namespace Name Mixin selector named getSoundLnet/minecraft/block/enums/NoteBlockInstrument;getSound()Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_11886Lnet/minecraft/class_2766;method_11886()Lnet/minecraft/class_6880;official aLekn;a()Ljk;
-
canBePitched
public boolean canBePitched()Returns whether note blocks playing this instrument can change its pitch.- Returns:
- whether note blocks playing this instrument can change its pitch
- Mappings:
Namespace Name Mixin selector named canBePitchedLnet/minecraft/block/enums/NoteBlockInstrument;canBePitched()Zintermediary method_47889Lnet/minecraft/class_2766;method_47889()Zofficial bLekn;b()Z
-
hasCustomSound
public boolean hasCustomSound()Returns whether note blocks playing this instrument should determine the sound from skulls above them.- Returns:
- whether note blocks playing this instrument should determine the sound from skulls above them
- Mappings:
Namespace Name Mixin selector named hasCustomSoundLnet/minecraft/block/enums/NoteBlockInstrument;hasCustomSound()Zintermediary method_47890Lnet/minecraft/class_2766;method_47890()Zofficial dLekn;d()Z
-
isNotBaseBlock
public boolean isNotBaseBlock()- Mappings:
Namespace Name Mixin selector named isNotBaseBlockLnet/minecraft/block/enums/NoteBlockInstrument;isNotBaseBlock()Zintermediary method_51372Lnet/minecraft/class_2766;method_51372()Zofficial eLekn;e()Z
-