Class ToastManager

java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.toast.ToastManager

@Environment(CLIENT) public class ToastManager extends DrawableHelper
Mappings:
Namespace Name
official epz
intermediary net/minecraft/class_374
named net/minecraft/client/toast/ToastManager
  • Field Details

    • SPACES

      private static final int SPACES
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lepz;a:I
      intermediary field_39929 Lnet/minecraft/class_374;field_39929:I
      named SPACES Lnet/minecraft/client/toast/ToastManager;SPACES:I
    • ALL_OCCUPIED

      private static final int ALL_OCCUPIED
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lepz;b:I
      intermediary field_39930 Lnet/minecraft/class_374;field_39930:I
      named ALL_OCCUPIED Lnet/minecraft/client/toast/ToastManager;ALL_OCCUPIED:I
    • client

      final MinecraftClient client
      Mappings:
      Namespace Name Mixin selector
      official c Lepz;c:Lemh;
      intermediary field_2238 Lnet/minecraft/class_374;field_2238:Lnet/minecraft/class_310;
      named client Lnet/minecraft/client/toast/ToastManager;client:Lnet/minecraft/client/MinecraftClient;
    • visibleEntries

      private final List<ToastManager.Entry<?>> visibleEntries
      Mappings:
      Namespace Name Mixin selector
      official d Lepz;d:Ljava/util/List;
      intermediary field_2239 Lnet/minecraft/class_374;field_2239:Ljava/util/List;
      named visibleEntries Lnet/minecraft/client/toast/ToastManager;visibleEntries:Ljava/util/List;
    • occupiedSpaces

      private final BitSet occupiedSpaces
      Mappings:
      Namespace Name Mixin selector
      official e Lepz;e:Ljava/util/BitSet;
      intermediary field_39931 Lnet/minecraft/class_374;field_39931:Ljava/util/BitSet;
      named occupiedSpaces Lnet/minecraft/client/toast/ToastManager;occupiedSpaces:Ljava/util/BitSet;
    • toastQueue

      private final Deque<Toast> toastQueue
      Mappings:
      Namespace Name Mixin selector
      official f Lepz;f:Ljava/util/Deque;
      intermediary field_2240 Lnet/minecraft/class_374;field_2240:Ljava/util/Deque;
      named toastQueue Lnet/minecraft/client/toast/ToastManager;toastQueue:Ljava/util/Deque;
  • Constructor Details

    • ToastManager

      public ToastManager(MinecraftClient client)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lepz;<init>(Lemh;)V
      intermediary <init> Lnet/minecraft/class_374;<init>(Lnet/minecraft/class_310;)V
      named <init> Lnet/minecraft/client/toast/ToastManager;<init>(Lnet/minecraft/client/MinecraftClient;)V
  • Method Details

    • draw

      public void draw(MatrixStack matrices)
      Mappings:
      Namespace Name Mixin selector
      official a Lepz;a(Lehe;)V
      intermediary method_1996 Lnet/minecraft/class_374;method_1996(Lnet/minecraft/class_4587;)V
      named draw Lnet/minecraft/client/toast/ToastManager;draw(Lnet/minecraft/client/util/math/MatrixStack;)V
    • getTopIndex

      private int getTopIndex(int requiredSpaces)
      Mappings:
      Namespace Name Mixin selector
      official a Lepz;a(I)I
      intermediary method_45073 Lnet/minecraft/class_374;method_45073(I)I
      named getTopIndex Lnet/minecraft/client/toast/ToastManager;getTopIndex(I)I
    • getEmptySpaceCount

      private int getEmptySpaceCount()
      Mappings:
      Namespace Name Mixin selector
      official d Lepz;d()I
      intermediary method_45076 Lnet/minecraft/class_374;method_45076()I
      named getEmptySpaceCount Lnet/minecraft/client/toast/ToastManager;getEmptySpaceCount()I
    • getToast

      @Nullable public <T extends Toast> T getToast(Class<? extends T> toastClass, Object type)
      Mappings:
      Namespace Name Mixin selector
      official a Lepz;a(Ljava/lang/Class;Ljava/lang/Object;)Lepy;
      intermediary method_1997 Lnet/minecraft/class_374;method_1997(Ljava/lang/Class;Ljava/lang/Object;)Lnet/minecraft/class_368;
      named getToast Lnet/minecraft/client/toast/ToastManager;getToast(Ljava/lang/Class;Ljava/lang/Object;)Lnet/minecraft/client/toast/Toast;
    • clear

      public void clear()
      Mappings:
      Namespace Name Mixin selector
      official a Lepz;a()V
      intermediary method_2000 Lnet/minecraft/class_374;method_2000()V
      named clear Lnet/minecraft/client/toast/ToastManager;clear()V
    • add

      public void add(Toast toast)
      Mappings:
      Namespace Name Mixin selector
      official a Lepz;a(Lepy;)V
      intermediary method_1999 Lnet/minecraft/class_374;method_1999(Lnet/minecraft/class_368;)V
      named add Lnet/minecraft/client/toast/ToastManager;add(Lnet/minecraft/client/toast/Toast;)V
    • getClient

      public MinecraftClient getClient()
      Mappings:
      Namespace Name Mixin selector
      official b Lepz;b()Lemh;
      intermediary method_1995 Lnet/minecraft/class_374;method_1995()Lnet/minecraft/class_310;
      named getClient Lnet/minecraft/client/toast/ToastManager;getClient()Lnet/minecraft/client/MinecraftClient;
    • getNotificationDisplayTimeMultiplier

      public double getNotificationDisplayTimeMultiplier()
      Mappings:
      Namespace Name Mixin selector
      official c Lepz;c()D
      intermediary method_48221 Lnet/minecraft/class_374;method_48221()D
      named getNotificationDisplayTimeMultiplier Lnet/minecraft/client/toast/ToastManager;getNotificationDisplayTimeMultiplier()D