Package net.minecraft.client.sound
Enum Class MusicTracker.MusicFrequency
- All Implemented Interfaces:
Serializable
,Comparable<MusicTracker.MusicFrequency>
,Constable
,StringIdentifiable
,TranslatableOption
- Enclosing class:
MusicTracker
@Environment(CLIENT)
public static enum MusicTracker.MusicFrequency
extends Enum<MusicTracker.MusicFrequency>
implements TranslatableOption, StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/client/sound/MusicTracker$MusicFrequency
intermediary net/minecraft/class_1142$class_11504
official hwr$a
-
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.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<MusicTracker.MusicFrequency> private final int
private final int
private static final String
private final String
Fields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()
Returns the unique string representation of the enum, used for serialization.(package private) int
getDelayBeforePlaying
(@Nullable MusicSound music, Random random) int
getId()
static MusicTracker.MusicFrequency
Returns the enum constant of this class with the specified name.static MusicTracker.MusicFrequency[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface net.minecraft.util.TranslatableOption
getText
-
Enum Constant Details
-
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULT
Lnet/minecraft/client/sound/MusicTracker$MusicFrequency;DEFAULT:Lnet/minecraft/client/sound/MusicTracker$MusicFrequency;
intermediary field_60797
Lnet/minecraft/class_1142$class_11504;field_60797:Lnet/minecraft/class_1142$class_11504;
official a
Lhwr$a;a:Lhwr$a;
-
FREQUENT
- Mappings:
Namespace Name Mixin selector named FREQUENT
Lnet/minecraft/client/sound/MusicTracker$MusicFrequency;FREQUENT:Lnet/minecraft/client/sound/MusicTracker$MusicFrequency;
intermediary field_60798
Lnet/minecraft/class_1142$class_11504;field_60798:Lnet/minecraft/class_1142$class_11504;
official b
Lhwr$a;b:Lhwr$a;
-
CONSTANT
- Mappings:
Namespace Name Mixin selector named CONSTANT
Lnet/minecraft/client/sound/MusicTracker$MusicFrequency;CONSTANT:Lnet/minecraft/client/sound/MusicTracker$MusicFrequency;
intermediary field_60799
Lnet/minecraft/class_1142$class_11504;field_60799:Lnet/minecraft/class_1142$class_11504;
official c
Lhwr$a;c:Lhwr$a;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/client/sound/MusicTracker$MusicFrequency;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_60800
Lnet/minecraft/class_1142$class_11504;field_60800:Lcom/mojang/serialization/Codec;
official d
Lhwr$a;d:Lcom/mojang/serialization/Codec;
-
TRANSLATION_KEY_PREFIX
- See Also:
- Mappings:
Namespace Name Mixin selector named TRANSLATION_KEY_PREFIX
Lnet/minecraft/client/sound/MusicTracker$MusicFrequency;TRANSLATION_KEY_PREFIX:Ljava/lang/String;
intermediary field_60801
Lnet/minecraft/class_1142$class_11504;field_60801:Ljava/lang/String;
official e
Lhwr$a;e:Ljava/lang/String;
-
index
private final int index- Mappings:
Namespace Name Mixin selector named index
Lnet/minecraft/client/sound/MusicTracker$MusicFrequency;index:I
intermediary field_60802
Lnet/minecraft/class_1142$class_11504;field_60802:I
official f
Lhwr$a;f:I
-
delayBetweenTracks
private final int delayBetweenTracks- Mappings:
Namespace Name Mixin selector named delayBetweenTracks
Lnet/minecraft/client/sound/MusicTracker$MusicFrequency;delayBetweenTracks:I
intermediary field_60803
Lnet/minecraft/class_1142$class_11504;field_60803:I
official g
Lhwr$a;g:I
-
translationKey
- Mappings:
Namespace Name Mixin selector named translationKey
Lnet/minecraft/client/sound/MusicTracker$MusicFrequency;translationKey:Ljava/lang/String;
intermediary field_60804
Lnet/minecraft/class_1142$class_11504;field_60804:Ljava/lang/String;
official h
Lhwr$a;h:Ljava/lang/String;
-
-
Constructor Details
-
MusicFrequency
private MusicFrequency(int index) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/sound/MusicTracker$MusicFrequency;<init>(Ljava/lang/String;II)V
intermediary <init>
Lnet/minecraft/class_1142$class_11504;<init>(Ljava/lang/String;II)V
official <init>
Lhwr$a;<init>(Ljava/lang/String;II)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
-
getDelayBeforePlaying
- Mappings:
Namespace Name Mixin selector named getDelayBeforePlaying
Lnet/minecraft/client/sound/MusicTracker$MusicFrequency;getDelayBeforePlaying(Lnet/minecraft/sound/MusicSound;Lnet/minecraft/util/math/random/Random;)I
intermediary method_71935
Lnet/minecraft/class_1142$class_11504;method_71935(Lnet/minecraft/class_5195;Lnet/minecraft/class_5819;)I
official a
Lhwr$a;a(Layw;Lbck;)I
-
getId
public int getId()- Specified by:
getId
in interfaceTranslatableOption
- Mappings:
Namespace Name Mixin selector named getId
Lnet/minecraft/util/TranslatableOption;getId()I
intermediary method_7362
Lnet/minecraft/class_7291;method_7362()I
official b
Lbce;b()I
-
getTranslationKey
- Specified by:
getTranslationKey
in interfaceTranslatableOption
- Mappings:
Namespace Name Mixin selector named getTranslationKey
Lnet/minecraft/util/TranslatableOption;getTranslationKey()Ljava/lang/String;
intermediary method_7359
Lnet/minecraft/class_7291;method_7359()Ljava/lang/String;
official a
Lbce;a()Ljava/lang/String;
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asString
in interfaceStringIdentifiable
- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asString
Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
intermediary method_15434
Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
official c
Lbda;c()Ljava/lang/String;
-