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
named net/minecraft/client/toast/SystemToast
intermediary net/minecraft/class_370
official fqo
  • Field Details

    • TEXTURE

      private static final Identifier TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named TEXTURE Lnet/minecraft/client/toast/SystemToast;TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45396 Lnet/minecraft/class_370;field_45396:Lnet/minecraft/class_2960;
      official a Lfqo;a:Lalz;
    • MIN_WIDTH

      private static final int MIN_WIDTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MIN_WIDTH Lnet/minecraft/client/toast/SystemToast;MIN_WIDTH:I
      intermediary field_32219 Lnet/minecraft/class_370;field_32219:I
      official e Lfqo;e:I
    • LINE_HEIGHT

      private static final int LINE_HEIGHT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named LINE_HEIGHT Lnet/minecraft/client/toast/SystemToast;LINE_HEIGHT:I
      intermediary field_39926 Lnet/minecraft/class_370;field_39926:I
      official f Lfqo;f:I
    • PADDING_Y

      private static final int PADDING_Y
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named PADDING_Y Lnet/minecraft/client/toast/SystemToast;PADDING_Y:I
      intermediary field_39927 Lnet/minecraft/class_370;field_39927:I
      official g Lfqo;g:I
    • type

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

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

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

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

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

      private final int width
      Mappings:
      Namespace Name Mixin selector
      named width Lnet/minecraft/client/toast/SystemToast;width:I
      intermediary field_25038 Lnet/minecraft/class_370;field_25038:I
      official m Lfqo;m:I
    • hidden

      private boolean hidden
      Mappings:
      Namespace Name Mixin selector
      named hidden Lnet/minecraft/client/toast/SystemToast;hidden:Z
      intermediary field_47582 Lnet/minecraft/class_370;field_47582:Z
      official n Lfqo;n:Z
    • visibility

      private Toast.Visibility visibility
      Mappings:
      Namespace Name Mixin selector
      named visibility Lnet/minecraft/client/toast/SystemToast;visibility:Lnet/minecraft/client/toast/Toast$Visibility;
      intermediary field_52784 Lnet/minecraft/class_370;field_52784:Lnet/minecraft/class_368$class_369;
      official o Lfqo;o:Lfqp$a;
  • Constructor Details

    • SystemToast

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

      private SystemToast(SystemToast.Type type, Text title, List<OrderedText> lines, int width)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/toast/SystemToast;<init>(Lnet/minecraft/client/toast/SystemToast$Type;Lnet/minecraft/text/Text;Ljava/util/List;I)V
      intermediary <init> Lnet/minecraft/class_370;<init>(Lnet/minecraft/class_370$class_9037;Lnet/minecraft/class_2561;Ljava/util/List;I)V
      official <init> Lfqo;<init>(Lfqo$a;Lxv;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
      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;
      intermediary method_29047 Lnet/minecraft/class_370;method_29047(Lnet/minecraft/class_310;Lnet/minecraft/class_370$class_9037;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)Lnet/minecraft/class_370;
      official a Lfqo;a(Lfmf;Lfqo$a;Lxv;Lxv;)Lfqo;
    • getTextAsList

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

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

      public int getHeight()
      Specified by:
      getHeight in interface Toast
      Mappings:
      Namespace Name Mixin selector
      named getHeight Lnet/minecraft/client/toast/Toast;getHeight()I
      intermediary method_29050 Lnet/minecraft/class_368;method_29050()I
      official c Lfqp;c()I
    • hide

      public void hide()
      Mappings:
      Namespace Name Mixin selector
      named hide Lnet/minecraft/client/toast/SystemToast;hide()V
      intermediary method_55508 Lnet/minecraft/class_370;method_55508()V
      official d Lfqo;d()V
    • getVisibility

      public Toast.Visibility getVisibility()
      Specified by:
      getVisibility in interface Toast
      Mappings:
      Namespace Name Mixin selector
      named getVisibility Lnet/minecraft/client/toast/Toast;getVisibility()Lnet/minecraft/client/toast/Toast$Visibility;
      intermediary method_61988 Lnet/minecraft/class_368;method_61988()Lnet/minecraft/class_368$class_369;
      official a Lfqp;a()Lfqp$a;
    • update

      public void update(ToastManager manager, long time)
      Specified by:
      update in interface Toast
      Mappings:
      Namespace Name Mixin selector
      named update Lnet/minecraft/client/toast/Toast;update(Lnet/minecraft/client/toast/ToastManager;J)V
      intermediary method_61989 Lnet/minecraft/class_368;method_61989(Lnet/minecraft/class_374;J)V
      official a Lfqp;a(Lfqq;J)V
    • draw

      public void draw(DrawContext context, TextRenderer textRenderer, long startTime)
      Specified by:
      draw in interface Toast
      Mappings:
      Namespace Name Mixin selector
      named draw Lnet/minecraft/client/toast/Toast;draw(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/client/font/TextRenderer;J)V
      intermediary method_1986 Lnet/minecraft/class_368;method_1986(Lnet/minecraft/class_332;Lnet/minecraft/class_327;J)V
      official a Lfqp;a(Lfnr;Lfnp;J)V
    • drawPart

      private void drawPart(DrawContext context, int int2, int int3, int int4, int int5)
      Mappings:
      Namespace Name Mixin selector
      named drawPart Lnet/minecraft/client/toast/SystemToast;drawPart(Lnet/minecraft/client/gui/DrawContext;IIII)V
      intermediary method_29046 Lnet/minecraft/class_370;method_29046(Lnet/minecraft/class_332;IIII)V
      official a Lfqo;a(Lfnr;IIII)V
    • setContent

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

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

      public static void add(ToastManager manager, SystemToast.Type type, Text title, @Nullable @Nullable Text description)
      Mappings:
      Namespace Name Mixin selector
      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
      intermediary method_27024 Lnet/minecraft/class_370;method_27024(Lnet/minecraft/class_374;Lnet/minecraft/class_370$class_9037;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)V
      official a Lfqo;a(Lfqq;Lfqo$a;Lxv;Lxv;)V
    • show

      public static void show(ToastManager manager, SystemToast.Type type, Text title, @Nullable @Nullable Text description)
      Mappings:
      Namespace Name Mixin selector
      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
      intermediary method_1990 Lnet/minecraft/class_370;method_1990(Lnet/minecraft/class_374;Lnet/minecraft/class_370$class_9037;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)V
      official b Lfqo;b(Lfqq;Lfqo$a;Lxv;Lxv;)V
    • hide

      public static void hide(ToastManager manager, SystemToast.Type type)
      Mappings:
      Namespace Name Mixin selector
      named hide Lnet/minecraft/client/toast/SystemToast;hide(Lnet/minecraft/client/toast/ToastManager;Lnet/minecraft/client/toast/SystemToast$Type;)V
      intermediary method_55507 Lnet/minecraft/class_370;method_55507(Lnet/minecraft/class_374;Lnet/minecraft/class_370$class_9037;)V
      official a Lfqo;a(Lfqq;Lfqo$a;)V
    • addWorldAccessFailureToast

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

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

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

      public static void addFileDropFailure(MinecraftClient client, int count)
      Mappings:
      Namespace Name Mixin selector
      named addFileDropFailure Lnet/minecraft/client/toast/SystemToast;addFileDropFailure(Lnet/minecraft/client/MinecraftClient;I)V
      intermediary method_60865 Lnet/minecraft/class_370;method_60865(Lnet/minecraft/class_310;I)V
      official a Lfqo;a(Lfmf;I)V
    • addLowDiskSpace

      public static void addLowDiskSpace(MinecraftClient client)
      Mappings:
      Namespace Name Mixin selector
      named addLowDiskSpace Lnet/minecraft/client/toast/SystemToast;addLowDiskSpace(Lnet/minecraft/client/MinecraftClient;)V
      intermediary method_57723 Lnet/minecraft/class_370;method_57723(Lnet/minecraft/class_310;)V
      official a Lfqo;a(Lfmf;)V
    • addChunkLoadFailure

      public static void addChunkLoadFailure(MinecraftClient client, ChunkPos pos)
      Mappings:
      Namespace Name Mixin selector
      named addChunkLoadFailure Lnet/minecraft/client/toast/SystemToast;addChunkLoadFailure(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/util/math/ChunkPos;)V
      intermediary method_57724 Lnet/minecraft/class_370;method_57724(Lnet/minecraft/class_310;Lnet/minecraft/class_1923;)V
      official a Lfqo;a(Lfmf;Ldgn;)V
    • addChunkSaveFailure

      public static void addChunkSaveFailure(MinecraftClient client, ChunkPos pos)
      Mappings:
      Namespace Name Mixin selector
      named addChunkSaveFailure Lnet/minecraft/client/toast/SystemToast;addChunkSaveFailure(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/util/math/ChunkPos;)V
      intermediary method_57725 Lnet/minecraft/class_370;method_57725(Lnet/minecraft/class_310;Lnet/minecraft/class_1923;)V
      official b Lfqo;b(Lfmf;Ldgn;)V