Package net.minecraft.state.properties
Enum NoteBlockInstrument
- java.lang.Object
-
- java.lang.Enum<NoteBlockInstrument>
-
- net.minecraft.state.properties.NoteBlockInstrument
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NoteBlockInstrument>
,IStringSerializable
public enum NoteBlockInstrument extends java.lang.Enum<NoteBlockInstrument> implements IStringSerializable
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
name
private SoundEvent
soundEvent
-
Constructor Summary
Constructors Modifier Constructor Description private
NoteBlockInstrument(java.lang.String p_i49336_3_, SoundEvent p_i49336_4_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NoteBlockInstrument
byState(BlockState p_208087_0_)
java.lang.String
getSerializedName()
SoundEvent
getSoundEvent()
static NoteBlockInstrument
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static NoteBlockInstrument[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HARP
public static final NoteBlockInstrument HARP
-
BASEDRUM
public static final NoteBlockInstrument BASEDRUM
-
SNARE
public static final NoteBlockInstrument SNARE
-
HAT
public static final NoteBlockInstrument HAT
-
BASS
public static final NoteBlockInstrument BASS
-
FLUTE
public static final NoteBlockInstrument FLUTE
-
BELL
public static final NoteBlockInstrument BELL
-
GUITAR
public static final NoteBlockInstrument GUITAR
-
CHIME
public static final NoteBlockInstrument CHIME
-
XYLOPHONE
public static final NoteBlockInstrument XYLOPHONE
-
IRON_XYLOPHONE
public static final NoteBlockInstrument IRON_XYLOPHONE
-
COW_BELL
public static final NoteBlockInstrument COW_BELL
-
DIDGERIDOO
public static final NoteBlockInstrument DIDGERIDOO
-
BIT
public static final NoteBlockInstrument BIT
-
BANJO
public static final NoteBlockInstrument BANJO
-
PLING
public static final NoteBlockInstrument PLING
-
-
Field Detail
-
name
private final java.lang.String name
-
soundEvent
private final SoundEvent soundEvent
-
-
Constructor Detail
-
NoteBlockInstrument
private NoteBlockInstrument(java.lang.String p_i49336_3_, SoundEvent p_i49336_4_)
-
-
Method Detail
-
values
public static NoteBlockInstrument[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NoteBlockInstrument c : NoteBlockInstrument.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NoteBlockInstrument valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getSerializedName
public java.lang.String getSerializedName()
- Specified by:
getSerializedName
in interfaceIStringSerializable
-
getSoundEvent
public SoundEvent getSoundEvent()
-
byState
public static NoteBlockInstrument byState(BlockState p_208087_0_)
-
-