Package net.minecraft.block.enums
Enum Instrument
- All Implemented Interfaces:
Serializable
,Comparable<Instrument>
,java.lang.constant.Constable
,StringIdentifiable
public enum Instrument extends Enum<Instrument> implements StringIdentifiable
- Mappings:
Namespace Name official ciu
intermediary net/minecraft/class_2766
named net/minecraft/block/enums/Instrument
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description private String
name
private SoundEvent
sound
-
Constructor Summary
Constructors Modifier Constructor Description private
Instrument(String name, SoundEvent sound)
-
Method Summary
Modifier and Type Method Description String
asString()
static Instrument
fromBlockState(BlockState state)
SoundEvent
getSound()
static Instrument
valueOf(String name)
Returns the enum constant of this type with the specified name.static Instrument[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HARP
- Mappings:
Namespace Name Mixin selector official a
Lciu;a:Lciu;
intermediary field_12648
Lnet/minecraft/class_2766;field_12648:Lnet/minecraft/class_2766;
named HARP
Lnet/minecraft/block/enums/Instrument;HARP:Lnet/minecraft/block/enums/Instrument;
-
BASEDRUM
- Mappings:
Namespace Name Mixin selector official b
Lciu;b:Lciu;
intermediary field_12653
Lnet/minecraft/class_2766;field_12653:Lnet/minecraft/class_2766;
named BASEDRUM
Lnet/minecraft/block/enums/Instrument;BASEDRUM:Lnet/minecraft/block/enums/Instrument;
-
SNARE
- Mappings:
Namespace Name Mixin selector official c
Lciu;c:Lciu;
intermediary field_12643
Lnet/minecraft/class_2766;field_12643:Lnet/minecraft/class_2766;
named SNARE
Lnet/minecraft/block/enums/Instrument;SNARE:Lnet/minecraft/block/enums/Instrument;
-
HAT
- Mappings:
Namespace Name Mixin selector official d
Lciu;d:Lciu;
intermediary field_12645
Lnet/minecraft/class_2766;field_12645:Lnet/minecraft/class_2766;
named HAT
Lnet/minecraft/block/enums/Instrument;HAT:Lnet/minecraft/block/enums/Instrument;
-
BASS
- Mappings:
Namespace Name Mixin selector official e
Lciu;e:Lciu;
intermediary field_12651
Lnet/minecraft/class_2766;field_12651:Lnet/minecraft/class_2766;
named BASS
Lnet/minecraft/block/enums/Instrument;BASS:Lnet/minecraft/block/enums/Instrument;
-
FLUTE
- Mappings:
Namespace Name Mixin selector official f
Lciu;f:Lciu;
intermediary field_12650
Lnet/minecraft/class_2766;field_12650:Lnet/minecraft/class_2766;
named FLUTE
Lnet/minecraft/block/enums/Instrument;FLUTE:Lnet/minecraft/block/enums/Instrument;
-
BELL
- Mappings:
Namespace Name Mixin selector official g
Lciu;g:Lciu;
intermediary field_12644
Lnet/minecraft/class_2766;field_12644:Lnet/minecraft/class_2766;
named BELL
Lnet/minecraft/block/enums/Instrument;BELL:Lnet/minecraft/block/enums/Instrument;
-
GUITAR
- Mappings:
Namespace Name Mixin selector official h
Lciu;h:Lciu;
intermediary field_12654
Lnet/minecraft/class_2766;field_12654:Lnet/minecraft/class_2766;
named GUITAR
Lnet/minecraft/block/enums/Instrument;GUITAR:Lnet/minecraft/block/enums/Instrument;
-
CHIME
- Mappings:
Namespace Name Mixin selector official i
Lciu;i:Lciu;
intermediary field_12647
Lnet/minecraft/class_2766;field_12647:Lnet/minecraft/class_2766;
named CHIME
Lnet/minecraft/block/enums/Instrument;CHIME:Lnet/minecraft/block/enums/Instrument;
-
XYLOPHONE
- Mappings:
Namespace Name Mixin selector official j
Lciu;j:Lciu;
intermediary field_12655
Lnet/minecraft/class_2766;field_12655:Lnet/minecraft/class_2766;
named XYLOPHONE
Lnet/minecraft/block/enums/Instrument;XYLOPHONE:Lnet/minecraft/block/enums/Instrument;
-
IRON_XYLOPHONE
- Mappings:
Namespace Name Mixin selector official k
Lciu;k:Lciu;
intermediary field_18284
Lnet/minecraft/class_2766;field_18284:Lnet/minecraft/class_2766;
named IRON_XYLOPHONE
Lnet/minecraft/block/enums/Instrument;IRON_XYLOPHONE:Lnet/minecraft/block/enums/Instrument;
-
COW_BELL
- Mappings:
Namespace Name Mixin selector official l
Lciu;l:Lciu;
intermediary field_18285
Lnet/minecraft/class_2766;field_18285:Lnet/minecraft/class_2766;
named COW_BELL
Lnet/minecraft/block/enums/Instrument;COW_BELL:Lnet/minecraft/block/enums/Instrument;
-
DIDGERIDOO
- Mappings:
Namespace Name Mixin selector official m
Lciu;m:Lciu;
intermediary field_18286
Lnet/minecraft/class_2766;field_18286:Lnet/minecraft/class_2766;
named DIDGERIDOO
Lnet/minecraft/block/enums/Instrument;DIDGERIDOO:Lnet/minecraft/block/enums/Instrument;
-
BIT
- Mappings:
Namespace Name Mixin selector official n
Lciu;n:Lciu;
intermediary field_18287
Lnet/minecraft/class_2766;field_18287:Lnet/minecraft/class_2766;
named BIT
Lnet/minecraft/block/enums/Instrument;BIT:Lnet/minecraft/block/enums/Instrument;
-
BANJO
- Mappings:
Namespace Name Mixin selector official o
Lciu;o:Lciu;
intermediary field_18288
Lnet/minecraft/class_2766;field_18288:Lnet/minecraft/class_2766;
named BANJO
Lnet/minecraft/block/enums/Instrument;BANJO:Lnet/minecraft/block/enums/Instrument;
-
PLING
- Mappings:
Namespace Name Mixin selector official p
Lciu;p:Lciu;
intermediary field_18289
Lnet/minecraft/class_2766;field_18289:Lnet/minecraft/class_2766;
named PLING
Lnet/minecraft/block/enums/Instrument;PLING:Lnet/minecraft/block/enums/Instrument;
-
-
Field Details
-
name
- Mappings:
Namespace Name Mixin selector official q
Lciu;q:Ljava/lang/String;
intermediary field_12646
Lnet/minecraft/class_2766;field_12646:Ljava/lang/String;
named name
Lnet/minecraft/block/enums/Instrument;name:Ljava/lang/String;
-
sound
- Mappings:
Namespace Name Mixin selector official r
Lciu;r:Laef;
intermediary field_12649
Lnet/minecraft/class_2766;field_12649:Lnet/minecraft/class_3414;
named sound
Lnet/minecraft/block/enums/Instrument;sound:Lnet/minecraft/sound/SoundEvent;
-
-
Constructor Details
-
Instrument
- Mappings:
Namespace Name Mixin selector official <init>
Lciu;<init>(Ljava/lang/String;ILjava/lang/String;Laef;)V
intermediary <init>
Lnet/minecraft/class_2766;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_3414;)V
named <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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
asString
- Specified by:
asString
in interfaceStringIdentifiable
- Mappings:
Namespace Name Mixin selector official a
Lagi;a()Ljava/lang/String;
intermediary method_15434
Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
named asString
Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-
getSound
- Mappings:
Namespace Name Mixin selector official b
Lciu;b()Laef;
intermediary method_11886
Lnet/minecraft/class_2766;method_11886()Lnet/minecraft/class_3414;
named getSound
Lnet/minecraft/block/enums/Instrument;getSound()Lnet/minecraft/sound/SoundEvent;
-
fromBlockState
- Mappings:
Namespace Name Mixin selector official a
Lciu;a(Lcht;)Lciu;
intermediary method_11887
Lnet/minecraft/class_2766;method_11887(Lnet/minecraft/class_2680;)Lnet/minecraft/class_2766;
named fromBlockState
Lnet/minecraft/block/enums/Instrument;fromBlockState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/enums/Instrument;
-