Package net.minecraft.client.toast
Enum Toast.Visibility
- All Implemented Interfaces:
Serializable
,Comparable<Toast.Visibility>
,java.lang.constant.Constable
- Enclosing interface:
- Toast
@Environment(CLIENT) public static enum Toast.Visibility extends Enum<Toast.Visibility>
- Mappings:
Namespace Name official dtb$a
intermediary net/minecraft/class_368$class_369
named net/minecraft/client/toast/Toast$Visibility
-
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 SoundEvent
sound
-
Constructor Summary
Constructors Modifier Constructor Description private
Visibility(SoundEvent sound)
-
Method Summary
Modifier and Type Method Description void
playSound(SoundManager soundManager)
static Toast.Visibility
valueOf(String name)
Returns the enum constant of this type with the specified name.static Toast.Visibility[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SHOW
- Mappings:
Namespace Name Mixin selector official a
Ldtb$a;a:Ldtb$a;
intermediary field_2210
Lnet/minecraft/class_368$class_369;field_2210:Lnet/minecraft/class_368$class_369;
named SHOW
Lnet/minecraft/client/toast/Toast$Visibility;SHOW:Lnet/minecraft/client/toast/Toast$Visibility;
-
HIDE
- Mappings:
Namespace Name Mixin selector official b
Ldtb$a;b:Ldtb$a;
intermediary field_2209
Lnet/minecraft/class_368$class_369;field_2209:Lnet/minecraft/class_368$class_369;
named HIDE
Lnet/minecraft/client/toast/Toast$Visibility;HIDE:Lnet/minecraft/client/toast/Toast$Visibility;
-
-
Field Details
-
sound
- Mappings:
Namespace Name Mixin selector official c
Ldtb$a;c:Laef;
intermediary field_2211
Lnet/minecraft/class_368$class_369;field_2211:Lnet/minecraft/class_3414;
named sound
Lnet/minecraft/client/toast/Toast$Visibility;sound:Lnet/minecraft/sound/SoundEvent;
-
-
Constructor Details
-
Visibility
- Mappings:
Namespace Name Mixin selector official <init>
Ldtb$a;<init>(Ljava/lang/String;ILaef;)V
intermediary <init>
Lnet/minecraft/class_368$class_369;<init>(Ljava/lang/String;ILnet/minecraft/class_3414;)V
named <init>
Lnet/minecraft/client/toast/Toast$Visibility;<init>(Ljava/lang/String;ILnet/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
-
playSound
- Mappings:
Namespace Name Mixin selector official a
Ldtb$a;a(Levm;)V
intermediary method_1988
Lnet/minecraft/class_368$class_369;method_1988(Lnet/minecraft/class_1144;)V
named playSound
Lnet/minecraft/client/toast/Toast$Visibility;playSound(Lnet/minecraft/client/sound/SoundManager;)V
-