Package net.minecraft.block.enums
Enum Class Instrument
- All Implemented Interfaces:
Serializable,Comparable<Instrument>,Constable,StringIdentifiable
- Mappings:
Namespace Name intermediary net/minecraft/class_2766official dcznamed net/minecraft/block/enums/Instrument
-
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.Codec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final RegistryEntry<SoundEvent>private final Instrument.TypeFields inherited from interface net.minecraft.util.StringIdentifiable
field_38377 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateInstrument(String name, RegistryEntry<SoundEvent> sound, Instrument.Type type) -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.getSound()booleanReturns whether note blocks playing this instrument should determine the sound from skulls above them.booleanbooleanReturns whether note blocks playing this instrument should produce note particles.static InstrumentReturns the enum constant of this class with the specified name.static Instrument[]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 intermediary field_12648Lnet/minecraft/class_2766;field_12648:Lnet/minecraft/class_2766;official aLdcz;a:Ldcz;named HARPLnet/minecraft/block/enums/Instrument;HARP:Lnet/minecraft/block/enums/Instrument;
-
BASEDRUM
- Mappings:
Namespace Name Mixin selector intermediary field_12653Lnet/minecraft/class_2766;field_12653:Lnet/minecraft/class_2766;official bLdcz;b:Ldcz;named BASEDRUMLnet/minecraft/block/enums/Instrument;BASEDRUM:Lnet/minecraft/block/enums/Instrument;
-
SNARE
- Mappings:
Namespace Name Mixin selector intermediary field_12643Lnet/minecraft/class_2766;field_12643:Lnet/minecraft/class_2766;official cLdcz;c:Ldcz;named SNARELnet/minecraft/block/enums/Instrument;SNARE:Lnet/minecraft/block/enums/Instrument;
-
HAT
- Mappings:
Namespace Name Mixin selector intermediary field_12645Lnet/minecraft/class_2766;field_12645:Lnet/minecraft/class_2766;official dLdcz;d:Ldcz;named HATLnet/minecraft/block/enums/Instrument;HAT:Lnet/minecraft/block/enums/Instrument;
-
BASS
- Mappings:
Namespace Name Mixin selector intermediary field_12651Lnet/minecraft/class_2766;field_12651:Lnet/minecraft/class_2766;official eLdcz;e:Ldcz;named BASSLnet/minecraft/block/enums/Instrument;BASS:Lnet/minecraft/block/enums/Instrument;
-
FLUTE
- Mappings:
Namespace Name Mixin selector intermediary field_12650Lnet/minecraft/class_2766;field_12650:Lnet/minecraft/class_2766;official fLdcz;f:Ldcz;named FLUTELnet/minecraft/block/enums/Instrument;FLUTE:Lnet/minecraft/block/enums/Instrument;
-
BELL
- Mappings:
Namespace Name Mixin selector intermediary field_12644Lnet/minecraft/class_2766;field_12644:Lnet/minecraft/class_2766;official gLdcz;g:Ldcz;named BELLLnet/minecraft/block/enums/Instrument;BELL:Lnet/minecraft/block/enums/Instrument;
-
GUITAR
- Mappings:
Namespace Name Mixin selector intermediary field_12654Lnet/minecraft/class_2766;field_12654:Lnet/minecraft/class_2766;official hLdcz;h:Ldcz;named GUITARLnet/minecraft/block/enums/Instrument;GUITAR:Lnet/minecraft/block/enums/Instrument;
-
CHIME
- Mappings:
Namespace Name Mixin selector intermediary field_12647Lnet/minecraft/class_2766;field_12647:Lnet/minecraft/class_2766;official iLdcz;i:Ldcz;named CHIMELnet/minecraft/block/enums/Instrument;CHIME:Lnet/minecraft/block/enums/Instrument;
-
XYLOPHONE
- Mappings:
Namespace Name Mixin selector intermediary field_12655Lnet/minecraft/class_2766;field_12655:Lnet/minecraft/class_2766;official jLdcz;j:Ldcz;named XYLOPHONELnet/minecraft/block/enums/Instrument;XYLOPHONE:Lnet/minecraft/block/enums/Instrument;
-
IRON_XYLOPHONE
- Mappings:
Namespace Name Mixin selector intermediary field_18284Lnet/minecraft/class_2766;field_18284:Lnet/minecraft/class_2766;official kLdcz;k:Ldcz;named IRON_XYLOPHONELnet/minecraft/block/enums/Instrument;IRON_XYLOPHONE:Lnet/minecraft/block/enums/Instrument;
-
COW_BELL
- Mappings:
Namespace Name Mixin selector intermediary field_18285Lnet/minecraft/class_2766;field_18285:Lnet/minecraft/class_2766;official lLdcz;l:Ldcz;named COW_BELLLnet/minecraft/block/enums/Instrument;COW_BELL:Lnet/minecraft/block/enums/Instrument;
-
DIDGERIDOO
- Mappings:
Namespace Name Mixin selector intermediary field_18286Lnet/minecraft/class_2766;field_18286:Lnet/minecraft/class_2766;official mLdcz;m:Ldcz;named DIDGERIDOOLnet/minecraft/block/enums/Instrument;DIDGERIDOO:Lnet/minecraft/block/enums/Instrument;
-
BIT
- Mappings:
Namespace Name Mixin selector intermediary field_18287Lnet/minecraft/class_2766;field_18287:Lnet/minecraft/class_2766;official nLdcz;n:Ldcz;named BITLnet/minecraft/block/enums/Instrument;BIT:Lnet/minecraft/block/enums/Instrument;
-
BANJO
- Mappings:
Namespace Name Mixin selector intermediary field_18288Lnet/minecraft/class_2766;field_18288:Lnet/minecraft/class_2766;official oLdcz;o:Ldcz;named BANJOLnet/minecraft/block/enums/Instrument;BANJO:Lnet/minecraft/block/enums/Instrument;
-
PLING
- Mappings:
Namespace Name Mixin selector intermediary field_18289Lnet/minecraft/class_2766;field_18289:Lnet/minecraft/class_2766;official pLdcz;p:Ldcz;named PLINGLnet/minecraft/block/enums/Instrument;PLING:Lnet/minecraft/block/enums/Instrument;
-
ZOMBIE
- Mappings:
Namespace Name Mixin selector intermediary field_41324Lnet/minecraft/class_2766;field_41324:Lnet/minecraft/class_2766;official qLdcz;q:Ldcz;named ZOMBIELnet/minecraft/block/enums/Instrument;ZOMBIE:Lnet/minecraft/block/enums/Instrument;
-
SKELETON
- Mappings:
Namespace Name Mixin selector intermediary field_41325Lnet/minecraft/class_2766;field_41325:Lnet/minecraft/class_2766;official rLdcz;r:Ldcz;named SKELETONLnet/minecraft/block/enums/Instrument;SKELETON:Lnet/minecraft/block/enums/Instrument;
-
CREEPER
- Mappings:
Namespace Name Mixin selector intermediary field_41326Lnet/minecraft/class_2766;field_41326:Lnet/minecraft/class_2766;official sLdcz;s:Ldcz;named CREEPERLnet/minecraft/block/enums/Instrument;CREEPER:Lnet/minecraft/block/enums/Instrument;
-
DRAGON
- Mappings:
Namespace Name Mixin selector intermediary field_41327Lnet/minecraft/class_2766;field_41327:Lnet/minecraft/class_2766;official tLdcz;t:Ldcz;named DRAGONLnet/minecraft/block/enums/Instrument;DRAGON:Lnet/minecraft/block/enums/Instrument;
-
WITHER_SKELETON
- Mappings:
Namespace Name Mixin selector intermediary field_41328Lnet/minecraft/class_2766;field_41328:Lnet/minecraft/class_2766;official uLdcz;u:Ldcz;named WITHER_SKELETONLnet/minecraft/block/enums/Instrument;WITHER_SKELETON:Lnet/minecraft/block/enums/Instrument;
-
PIGLIN
- Mappings:
Namespace Name Mixin selector intermediary field_41329Lnet/minecraft/class_2766;field_41329:Lnet/minecraft/class_2766;official vLdcz;v:Ldcz;named PIGLINLnet/minecraft/block/enums/Instrument;PIGLIN:Lnet/minecraft/block/enums/Instrument;
-
CUSTOM_HEAD
- Mappings:
Namespace Name Mixin selector intermediary field_41604Lnet/minecraft/class_2766;field_41604:Lnet/minecraft/class_2766;official wLdcz;w:Ldcz;named CUSTOM_HEADLnet/minecraft/block/enums/Instrument;CUSTOM_HEAD:Lnet/minecraft/block/enums/Instrument;
-
-
Field Details
-
name
- Mappings:
Namespace Name Mixin selector intermediary field_12646Lnet/minecraft/class_2766;field_12646:Ljava/lang/String;official xLdcz;x:Ljava/lang/String;named nameLnet/minecraft/block/enums/Instrument;name:Ljava/lang/String;
-
sound
- Mappings:
Namespace Name Mixin selector intermediary field_12649Lnet/minecraft/class_2766;field_12649:Lnet/minecraft/class_6880;official yLdcz;y:Lhe;named soundLnet/minecraft/block/enums/Instrument;sound:Lnet/minecraft/registry/entry/RegistryEntry;
-
type
- Mappings:
Namespace Name Mixin selector intermediary field_41605Lnet/minecraft/class_2766;field_41605:Lnet/minecraft/class_2766$class_7994;official zLdcz;z:Ldcz$a;named typeLnet/minecraft/block/enums/Instrument;type:Lnet/minecraft/block/enums/Instrument$Type;
-
-
Constructor Details
-
Instrument
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_2766;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_6880;Lnet/minecraft/class_2766$class_7994;)Vofficial <init>Ldcz;<init>(Ljava/lang/String;ILjava/lang/String;Lhe;Ldcz$a;)Vnamed <init>Lnet/minecraft/block/enums/Instrument;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/block/enums/Instrument$Type;)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 intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLapr;c()Ljava/lang/String;named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-
getSound
- Mappings:
Namespace Name Mixin selector intermediary method_11886Lnet/minecraft/class_2766;method_11886()Lnet/minecraft/class_6880;official aLdcz;a()Lhe;named getSoundLnet/minecraft/block/enums/Instrument;getSound()Lnet/minecraft/registry/entry/RegistryEntry;
-
shouldSpawnNoteParticles
public boolean shouldSpawnNoteParticles()Returns whether note blocks playing this instrument should produce note particles.- Returns:
- whether note blocks playing this instrument should produce note particles
- Mappings:
Namespace Name Mixin selector intermediary method_47889Lnet/minecraft/class_2766;method_47889()Zofficial bLdcz;b()Znamed shouldSpawnNoteParticlesLnet/minecraft/block/enums/Instrument;shouldSpawnNoteParticles()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 intermediary method_47890Lnet/minecraft/class_2766;method_47890()Zofficial dLdcz;d()Znamed hasCustomSoundLnet/minecraft/block/enums/Instrument;hasCustomSound()Z
-
isNotBaseBlock
public boolean isNotBaseBlock()- Mappings:
Namespace Name Mixin selector intermediary method_51372Lnet/minecraft/class_2766;method_51372()Zofficial eLdcz;e()Znamed isNotBaseBlockLnet/minecraft/block/enums/Instrument;isNotBaseBlock()Z
-