Enum Class Toast.Visibility

java.lang.Object
java.lang.Enum<Toast.Visibility>
net.minecraft.client.toast.Toast.Visibility
All Implemented Interfaces:
Serializable, Comparable<Toast.Visibility>, Constable
Enclosing interface:
Toast

@Environment(CLIENT) public static enum Toast.Visibility extends Enum<Toast.Visibility>
Mappings:
Namespace Name
named net/minecraft/client/toast/Toast$Visibility
intermediary net/minecraft/class_368$class_369
official fkd$a
  • Enum Constant Details

    • SHOW

      public static final Toast.Visibility SHOW
      Mappings:
      Namespace Name Mixin selector
      named SHOW Lnet/minecraft/client/toast/Toast$Visibility;SHOW:Lnet/minecraft/client/toast/Toast$Visibility;
      intermediary field_2210 Lnet/minecraft/class_368$class_369;field_2210:Lnet/minecraft/class_368$class_369;
      official a Lfkd$a;a:Lfkd$a;
    • HIDE

      public static final Toast.Visibility HIDE
      Mappings:
      Namespace Name Mixin selector
      named HIDE Lnet/minecraft/client/toast/Toast$Visibility;HIDE:Lnet/minecraft/client/toast/Toast$Visibility;
      intermediary field_2209 Lnet/minecraft/class_368$class_369;field_2209:Lnet/minecraft/class_368$class_369;
      official b Lfkd$a;b:Lfkd$a;
  • Field Details

    • sound

      private final SoundEvent sound
      Mappings:
      Namespace Name Mixin selector
      named sound Lnet/minecraft/client/toast/Toast$Visibility;sound:Lnet/minecraft/sound/SoundEvent;
      intermediary field_2211 Lnet/minecraft/class_368$class_369;field_2211:Lnet/minecraft/class_3414;
      official c Lfkd$a;c:Lavg;
  • Constructor Details

    • Visibility

      private Visibility(SoundEvent sound)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/toast/Toast$Visibility;<init>(Ljava/lang/String;ILnet/minecraft/sound/SoundEvent;)V
      intermediary <init> Lnet/minecraft/class_368$class_369;<init>(Ljava/lang/String;ILnet/minecraft/class_3414;)V
      official <init> Lfkd$a;<init>(Ljava/lang/String;ILavg;)V
  • Method Details

    • values

      public static Toast.Visibility[] 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

      public static Toast.Visibility valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • playSound

      public void playSound(SoundManager soundManager)
      Mappings:
      Namespace Name Mixin selector
      named playSound Lnet/minecraft/client/toast/Toast$Visibility;playSound(Lnet/minecraft/client/sound/SoundManager;)V
      intermediary method_1988 Lnet/minecraft/class_368$class_369;method_1988(Lnet/minecraft/class_1144;)V
      official a Lfkd$a;a(Lguj;)V