Class SystemToast

java.lang.Object
net.minecraft.client.toast.SystemToast
All Implemented Interfaces:
Toast

@Environment(CLIENT) public class SystemToast extends Object implements Toast
Mappings:
Namespace Name
official dye
intermediary net/minecraft/class_370
named net/minecraft/client/toast/SystemToast
  • Field Details

    • field_32218

      private static final long field_32218
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Ldye;c:J
      intermediary field_32218 Lnet/minecraft/class_370;field_32218:J
      named field_32218 Lnet/minecraft/client/toast/SystemToast;field_32218:J
    • field_32219

      private static final int field_32219
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Ldye;d:I
      intermediary field_32219 Lnet/minecraft/class_370;field_32219:I
      named field_32219 Lnet/minecraft/client/toast/SystemToast;field_32219:I
    • type

      private final SystemToast.Type type
      Mappings:
      Namespace Name Mixin selector
      official e Ldye;e:Ldye$a;
      intermediary field_2213 Lnet/minecraft/class_370;field_2213:Lnet/minecraft/class_370$class_371;
      named type Lnet/minecraft/client/toast/SystemToast;type:Lnet/minecraft/client/toast/SystemToast$Type;
    • title

      private Text title
      Mappings:
      Namespace Name Mixin selector
      official f Ldye;f:Los;
      intermediary field_2215 Lnet/minecraft/class_370;field_2215:Lnet/minecraft/class_2561;
      named title Lnet/minecraft/client/toast/SystemToast;title:Lnet/minecraft/text/Text;
    • lines

      private List<OrderedText> lines
      Mappings:
      Namespace Name Mixin selector
      official g Ldye;g:Ljava/util/List;
      intermediary field_25037 Lnet/minecraft/class_370;field_25037:Ljava/util/List;
      named lines Lnet/minecraft/client/toast/SystemToast;lines:Ljava/util/List;
    • startTime

      private long startTime
      Mappings:
      Namespace Name Mixin selector
      official h Ldye;h:J
      intermediary field_2216 Lnet/minecraft/class_370;field_2216:J
      named startTime Lnet/minecraft/client/toast/SystemToast;startTime:J
    • justUpdated

      private boolean justUpdated
      Mappings:
      Namespace Name Mixin selector
      official i Ldye;i:Z
      intermediary field_2214 Lnet/minecraft/class_370;field_2214:Z
      named justUpdated Lnet/minecraft/client/toast/SystemToast;justUpdated:Z
    • width

      private final int width
      Mappings:
      Namespace Name Mixin selector
      official j Ldye;j:I
      intermediary field_25038 Lnet/minecraft/class_370;field_25038:I
      named width Lnet/minecraft/client/toast/SystemToast;width:I
  • Constructor Details

    • SystemToast

      public SystemToast(SystemToast.Type type, Text title, @Nullable @Nullable Text description)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldye;<init>(Ldye$a;Los;Los;)V
      intermediary <init> Lnet/minecraft/class_370;<init>(Lnet/minecraft/class_370$class_371;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)V
      named <init> Lnet/minecraft/client/toast/SystemToast;<init>(Lnet/minecraft/client/toast/SystemToast$Type;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)V
    • SystemToast

      private SystemToast(SystemToast.Type type, Text title, List<OrderedText> lines, int width)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldye;<init>(Ldye$a;Los;Ljava/util/List;I)V
      intermediary <init> Lnet/minecraft/class_370;<init>(Lnet/minecraft/class_370$class_371;Lnet/minecraft/class_2561;Ljava/util/List;I)V
      named <init> Lnet/minecraft/client/toast/SystemToast;<init>(Lnet/minecraft/client/toast/SystemToast$Type;Lnet/minecraft/text/Text;Ljava/util/List;I)V
  • Method Details

    • create

      public static SystemToast create(MinecraftClient client, SystemToast.Type type, Text title, Text description)
      Mappings:
      Namespace Name Mixin selector
      official a Ldye;a(Ldvo;Ldye$a;Los;Los;)Ldye;
      intermediary method_29047 Lnet/minecraft/class_370;method_29047(Lnet/minecraft/class_310;Lnet/minecraft/class_370$class_371;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)Lnet/minecraft/class_370;
      named create Lnet/minecraft/client/toast/SystemToast;create(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/toast/SystemToast$Type;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)Lnet/minecraft/client/toast/SystemToast;
    • getTextAsList

      private static ImmutableList<OrderedText> getTextAsList(@Nullable @Nullable Text text)
      Mappings:
      Namespace Name Mixin selector
      official a Ldye;a(Los;)Lcom/google/common/collect/ImmutableList;
      intermediary method_29626 Lnet/minecraft/class_370;method_29626(Lnet/minecraft/class_2561;)Lcom/google/common/collect/ImmutableList;
      named getTextAsList Lnet/minecraft/client/toast/SystemToast;getTextAsList(Lnet/minecraft/text/Text;)Lcom/google/common/collect/ImmutableList;
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface Toast
      Mappings:
      Namespace Name Mixin selector
      official a Ldyf;a()I
      intermediary method_29049 Lnet/minecraft/class_368;method_29049()I
      named getWidth Lnet/minecraft/client/toast/Toast;getWidth()I
    • draw

      public Toast.Visibility draw(MatrixStack matrices, ToastManager manager, long startTime)
      Specified by:
      draw in interface Toast
      Mappings:
      Namespace Name Mixin selector
      official a Ldyf;a(Ldqk;Ldyg;J)Ldyf$a;
      intermediary method_1986 Lnet/minecraft/class_368;method_1986(Lnet/minecraft/class_4587;Lnet/minecraft/class_374;J)Lnet/minecraft/class_368$class_369;
      named draw Lnet/minecraft/client/toast/Toast;draw(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/toast/ToastManager;J)Lnet/minecraft/client/toast/Toast$Visibility;
    • drawPart

      private void drawPart(MatrixStack matrices, ToastManager manager, int width, int textureV, int y, int height)
      Mappings:
      Namespace Name Mixin selector
      official a Ldye;a(Ldqk;Ldyg;IIII)V
      intermediary method_29046 Lnet/minecraft/class_370;method_29046(Lnet/minecraft/class_4587;Lnet/minecraft/class_374;IIII)V
      named drawPart Lnet/minecraft/client/toast/SystemToast;drawPart(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/toast/ToastManager;IIII)V
    • setContent

      public void setContent(Text title, @Nullable @Nullable Text description)
      Mappings:
      Namespace Name Mixin selector
      official a Ldye;a(Los;Los;)V
      intermediary method_1991 Lnet/minecraft/class_370;method_1991(Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)V
      named setContent Lnet/minecraft/client/toast/SystemToast;setContent(Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)V
    • getType

      public SystemToast.Type getType()
      Specified by:
      getType in interface Toast
      Mappings:
      Namespace Name Mixin selector
      official b Ldye;b()Ldye$a;
      intermediary method_1989 Lnet/minecraft/class_370;method_1989()Lnet/minecraft/class_370$class_371;
      named getType Lnet/minecraft/client/toast/SystemToast;getType()Lnet/minecraft/client/toast/SystemToast$Type;
    • add

      public static void add(ToastManager manager, SystemToast.Type type, Text title, @Nullable @Nullable Text description)
      Mappings:
      Namespace Name Mixin selector
      official a Ldye;a(Ldyg;Ldye$a;Los;Los;)V
      intermediary method_27024 Lnet/minecraft/class_370;method_27024(Lnet/minecraft/class_374;Lnet/minecraft/class_370$class_371;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)V
      named add Lnet/minecraft/client/toast/SystemToast;add(Lnet/minecraft/client/toast/ToastManager;Lnet/minecraft/client/toast/SystemToast$Type;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)V
    • show

      public static void show(ToastManager manager, SystemToast.Type type, Text title, @Nullable @Nullable Text description)
      Mappings:
      Namespace Name Mixin selector
      official b Ldye;b(Ldyg;Ldye$a;Los;Los;)V
      intermediary method_1990 Lnet/minecraft/class_370;method_1990(Lnet/minecraft/class_374;Lnet/minecraft/class_370$class_371;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)V
      named show Lnet/minecraft/client/toast/SystemToast;show(Lnet/minecraft/client/toast/ToastManager;Lnet/minecraft/client/toast/SystemToast$Type;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)V
    • addWorldAccessFailureToast

      public static void addWorldAccessFailureToast(MinecraftClient client, String worldName)
      Mappings:
      Namespace Name Mixin selector
      official a Ldye;a(Ldvo;Ljava/lang/String;)V
      intermediary method_27023 Lnet/minecraft/class_370;method_27023(Lnet/minecraft/class_310;Ljava/lang/String;)V
      named addWorldAccessFailureToast Lnet/minecraft/client/toast/SystemToast;addWorldAccessFailureToast(Lnet/minecraft/client/MinecraftClient;Ljava/lang/String;)V
    • addWorldDeleteFailureToast

      public static void addWorldDeleteFailureToast(MinecraftClient client, String worldName)
      Mappings:
      Namespace Name Mixin selector
      official b Ldye;b(Ldvo;Ljava/lang/String;)V
      intermediary method_27025 Lnet/minecraft/class_370;method_27025(Lnet/minecraft/class_310;Ljava/lang/String;)V
      named addWorldDeleteFailureToast Lnet/minecraft/client/toast/SystemToast;addWorldDeleteFailureToast(Lnet/minecraft/client/MinecraftClient;Ljava/lang/String;)V
    • addPackCopyFailure

      public static void addPackCopyFailure(MinecraftClient client, String directory)
      Mappings:
      Namespace Name Mixin selector
      official c Ldye;c(Ldvo;Ljava/lang/String;)V
      intermediary method_29627 Lnet/minecraft/class_370;method_29627(Lnet/minecraft/class_310;Ljava/lang/String;)V
      named addPackCopyFailure Lnet/minecraft/client/toast/SystemToast;addPackCopyFailure(Lnet/minecraft/client/MinecraftClient;Ljava/lang/String;)V