Package net.minecraft.block.enums
Enum Class Instrument
- All Implemented Interfaces:
Serializable,Comparable<Instrument>,Constable,StringIdentifiable
- Mappings:
Namespace Name official cwpintermediary net/minecraft/class_2766named net/minecraft/block/enums/Instrument
-
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.StringIdentifiable
StringIdentifiable.Codec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsFields inherited from interface net.minecraft.util.StringIdentifiable
field_38377 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()static InstrumentfromBlockState(BlockState state) getSound()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 official aLcwp;a:Lcwp;intermediary field_12648Lnet/minecraft/class_2766;field_12648:Lnet/minecraft/class_2766;named HARPLnet/minecraft/block/enums/Instrument;HARP:Lnet/minecraft/block/enums/Instrument;
-
BASEDRUM
- Mappings:
Namespace Name Mixin selector official bLcwp;b:Lcwp;intermediary field_12653Lnet/minecraft/class_2766;field_12653:Lnet/minecraft/class_2766;named BASEDRUMLnet/minecraft/block/enums/Instrument;BASEDRUM:Lnet/minecraft/block/enums/Instrument;
-
SNARE
- Mappings:
Namespace Name Mixin selector official cLcwp;c:Lcwp;intermediary field_12643Lnet/minecraft/class_2766;field_12643:Lnet/minecraft/class_2766;named SNARELnet/minecraft/block/enums/Instrument;SNARE:Lnet/minecraft/block/enums/Instrument;
-
HAT
- Mappings:
Namespace Name Mixin selector official dLcwp;d:Lcwp;intermediary field_12645Lnet/minecraft/class_2766;field_12645:Lnet/minecraft/class_2766;named HATLnet/minecraft/block/enums/Instrument;HAT:Lnet/minecraft/block/enums/Instrument;
-
BASS
- Mappings:
Namespace Name Mixin selector official eLcwp;e:Lcwp;intermediary field_12651Lnet/minecraft/class_2766;field_12651:Lnet/minecraft/class_2766;named BASSLnet/minecraft/block/enums/Instrument;BASS:Lnet/minecraft/block/enums/Instrument;
-
FLUTE
- Mappings:
Namespace Name Mixin selector official fLcwp;f:Lcwp;intermediary field_12650Lnet/minecraft/class_2766;field_12650:Lnet/minecraft/class_2766;named FLUTELnet/minecraft/block/enums/Instrument;FLUTE:Lnet/minecraft/block/enums/Instrument;
-
BELL
- Mappings:
Namespace Name Mixin selector official gLcwp;g:Lcwp;intermediary field_12644Lnet/minecraft/class_2766;field_12644:Lnet/minecraft/class_2766;named BELLLnet/minecraft/block/enums/Instrument;BELL:Lnet/minecraft/block/enums/Instrument;
-
GUITAR
- Mappings:
Namespace Name Mixin selector official hLcwp;h:Lcwp;intermediary field_12654Lnet/minecraft/class_2766;field_12654:Lnet/minecraft/class_2766;named GUITARLnet/minecraft/block/enums/Instrument;GUITAR:Lnet/minecraft/block/enums/Instrument;
-
CHIME
- Mappings:
Namespace Name Mixin selector official iLcwp;i:Lcwp;intermediary field_12647Lnet/minecraft/class_2766;field_12647:Lnet/minecraft/class_2766;named CHIMELnet/minecraft/block/enums/Instrument;CHIME:Lnet/minecraft/block/enums/Instrument;
-
XYLOPHONE
- Mappings:
Namespace Name Mixin selector official jLcwp;j:Lcwp;intermediary field_12655Lnet/minecraft/class_2766;field_12655:Lnet/minecraft/class_2766;named XYLOPHONELnet/minecraft/block/enums/Instrument;XYLOPHONE:Lnet/minecraft/block/enums/Instrument;
-
IRON_XYLOPHONE
- Mappings:
Namespace Name Mixin selector official kLcwp;k:Lcwp;intermediary field_18284Lnet/minecraft/class_2766;field_18284:Lnet/minecraft/class_2766;named IRON_XYLOPHONELnet/minecraft/block/enums/Instrument;IRON_XYLOPHONE:Lnet/minecraft/block/enums/Instrument;
-
COW_BELL
- Mappings:
Namespace Name Mixin selector official lLcwp;l:Lcwp;intermediary field_18285Lnet/minecraft/class_2766;field_18285:Lnet/minecraft/class_2766;named COW_BELLLnet/minecraft/block/enums/Instrument;COW_BELL:Lnet/minecraft/block/enums/Instrument;
-
DIDGERIDOO
- Mappings:
Namespace Name Mixin selector official mLcwp;m:Lcwp;intermediary field_18286Lnet/minecraft/class_2766;field_18286:Lnet/minecraft/class_2766;named DIDGERIDOOLnet/minecraft/block/enums/Instrument;DIDGERIDOO:Lnet/minecraft/block/enums/Instrument;
-
BIT
- Mappings:
Namespace Name Mixin selector official nLcwp;n:Lcwp;intermediary field_18287Lnet/minecraft/class_2766;field_18287:Lnet/minecraft/class_2766;named BITLnet/minecraft/block/enums/Instrument;BIT:Lnet/minecraft/block/enums/Instrument;
-
BANJO
- Mappings:
Namespace Name Mixin selector official oLcwp;o:Lcwp;intermediary field_18288Lnet/minecraft/class_2766;field_18288:Lnet/minecraft/class_2766;named BANJOLnet/minecraft/block/enums/Instrument;BANJO:Lnet/minecraft/block/enums/Instrument;
-
PLING
- Mappings:
Namespace Name Mixin selector official pLcwp;p:Lcwp;intermediary field_18289Lnet/minecraft/class_2766;field_18289:Lnet/minecraft/class_2766;named PLINGLnet/minecraft/block/enums/Instrument;PLING:Lnet/minecraft/block/enums/Instrument;
-
-
Field Details
-
name
- Mappings:
Namespace Name Mixin selector official qLcwp;q:Ljava/lang/String;intermediary field_12646Lnet/minecraft/class_2766;field_12646:Ljava/lang/String;named nameLnet/minecraft/block/enums/Instrument;name:Ljava/lang/String;
-
sound
- Mappings:
Namespace Name Mixin selector official rLcwp;r:Lajv;intermediary field_12649Lnet/minecraft/class_2766;field_12649:Lnet/minecraft/class_3414;named soundLnet/minecraft/block/enums/Instrument;sound:Lnet/minecraft/sound/SoundEvent;
-
-
Constructor Details
-
Instrument
- Mappings:
Namespace Name Mixin selector official <init>Lcwp;<init>(Ljava/lang/String;ILjava/lang/String;Lajv;)Vintermediary <init>Lnet/minecraft/class_2766;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_3414;)Vnamed <init>Lnet/minecraft/block/enums/Instrument;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/sound/SoundEvent;)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
- Specified by:
asStringin interfaceStringIdentifiable- Mappings:
Namespace Name Mixin selector official cLamw;c()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-
getSound
- Mappings:
Namespace Name Mixin selector official aLcwp;a()Lajv;intermediary method_11886Lnet/minecraft/class_2766;method_11886()Lnet/minecraft/class_3414;named getSoundLnet/minecraft/block/enums/Instrument;getSound()Lnet/minecraft/sound/SoundEvent;
-
fromBlockState
- Mappings:
Namespace Name Mixin selector official aLcwp;a(Lcvo;)Lcwp;intermediary method_11887Lnet/minecraft/class_2766;method_11887(Lnet/minecraft/class_2680;)Lnet/minecraft/class_2766;named fromBlockStateLnet/minecraft/block/enums/Instrument;fromBlockState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/enums/Instrument;
-