Package net.minecraft.client.option
Enum Class MusicToastMode
- All Implemented Interfaces:
Serializable,Comparable<MusicToastMode>,Constable,StringIdentifiable
@Environment(CLIENT)
public enum MusicToastMode
extends Enum<MusicToastMode>
implements StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/client/option/MusicToastModeintermediary net/minecraft/class_12345official geh
-
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<MusicToastMode> private final Stringprivate final Textprivate final TextFields 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.booleancanShow()booleangetText()static MusicToastModeReturns the enum constant of this class with the specified name.static MusicToastMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEVER
- Mappings:
Namespace Name Mixin selector named NEVERLnet/minecraft/client/option/MusicToastMode;NEVER:Lnet/minecraft/client/option/MusicToastMode;intermediary field_64525Lnet/minecraft/class_12345;field_64525:Lnet/minecraft/class_12345;official aLgeh;a:Lgeh;
-
PAUSE
- Mappings:
Namespace Name Mixin selector named PAUSELnet/minecraft/client/option/MusicToastMode;PAUSE:Lnet/minecraft/client/option/MusicToastMode;intermediary field_64526Lnet/minecraft/class_12345;field_64526:Lnet/minecraft/class_12345;official bLgeh;b:Lgeh;
-
PAUSE_AND_TOAST
- Mappings:
Namespace Name Mixin selector named PAUSE_AND_TOASTLnet/minecraft/client/option/MusicToastMode;PAUSE_AND_TOAST:Lnet/minecraft/client/option/MusicToastMode;intermediary field_64527Lnet/minecraft/class_12345;field_64527:Lnet/minecraft/class_12345;official cLgeh;c:Lgeh;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/option/MusicToastMode;CODEC:Lcom/mojang/serialization/Codec;intermediary field_64528Lnet/minecraft/class_12345;field_64528:Lcom/mojang/serialization/Codec;official dLgeh;d:Lcom/mojang/serialization/Codec;
-
id
- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/client/option/MusicToastMode;id:Ljava/lang/String;intermediary field_64529Lnet/minecraft/class_12345;field_64529:Ljava/lang/String;official eLgeh;e:Ljava/lang/String;
-
text
- Mappings:
Namespace Name Mixin selector named textLnet/minecraft/client/option/MusicToastMode;text:Lnet/minecraft/text/Text;intermediary field_64530Lnet/minecraft/class_12345;field_64530:Lnet/minecraft/class_2561;official fLgeh;f:Lyh;
-
tooltipText
- Mappings:
Namespace Name Mixin selector named tooltipTextLnet/minecraft/client/option/MusicToastMode;tooltipText:Lnet/minecraft/text/Text;intermediary field_64531Lnet/minecraft/class_12345;field_64531:Lnet/minecraft/class_2561;official gLgeh;g:Lyh;
-
-
Constructor Details
-
MusicToastMode
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/option/MusicToastMode;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_12345;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)Vofficial <init>Lgeh;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)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
-
getText
- Mappings:
Namespace Name Mixin selector named getTextLnet/minecraft/client/option/MusicToastMode;getText()Lnet/minecraft/text/Text;intermediary method_76604Lnet/minecraft/class_12345;method_76604()Lnet/minecraft/class_2561;official aLgeh;a()Lyh;
-
getTooltipText
- Mappings:
Namespace Name Mixin selector named getTooltipTextLnet/minecraft/client/option/MusicToastMode;getTooltipText()Lnet/minecraft/text/Text;intermediary method_76605Lnet/minecraft/class_12345;method_76605()Lnet/minecraft/class_2561;official bLgeh;b()Lyh;
-
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 named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLbhh;c()Ljava/lang/String;
-
canShow
public boolean canShow()- Mappings:
Namespace Name Mixin selector named canShowLnet/minecraft/client/option/MusicToastMode;canShow()Zintermediary method_76606Lnet/minecraft/class_12345;method_76606()Zofficial dLgeh;d()Z
-
canShowAsToast
public boolean canShowAsToast()- Mappings:
Namespace Name Mixin selector named canShowAsToastLnet/minecraft/client/option/MusicToastMode;canShowAsToast()Zintermediary method_76607Lnet/minecraft/class_12345;method_76607()Zofficial eLgeh;e()Z
-