Package net.minecraft.client.toast
Class SystemToast
java.lang.Object
net.minecraft.client.toast.SystemToast
- All Implemented Interfaces:
Toast
- Mappings:
Namespace Name named net/minecraft/client/toast/SystemToastintermediary net/minecraft/class_370official fmj
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.client.toast.Toast
Toast.Visibility -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate static final intprivate List<OrderedText> private static final intprivate static final intprivate longprivate static final Identifierprivate Textprivate final SystemToast.Typeprivate Toast.Visibilityprivate final intFields inherited from interface net.minecraft.client.toast.Toast
BASE_HEIGHT, BASE_WIDTH, TYPE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSystemToast(SystemToast.Type type, Text title, List<OrderedText> lines, int width) SystemToast(SystemToast.Type type, Text title, @Nullable Text description) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidadd(ToastManager manager, SystemToast.Type type, Text title, @Nullable Text description) static voidaddChunkLoadFailure(MinecraftClient client, ChunkPos pos) static voidaddChunkSaveFailure(MinecraftClient client, ChunkPos pos) static voidaddFileDropFailure(MinecraftClient client, int count) static voidaddLowDiskSpace(MinecraftClient client) static voidaddPackCopyFailure(MinecraftClient client, String directory) static voidaddWorldAccessFailureToast(MinecraftClient client, String worldName) static voidaddWorldDeleteFailureToast(MinecraftClient client, String worldName) static SystemToastcreate(MinecraftClient client, SystemToast.Type type, Text title, Text description) voiddraw(DrawContext context, TextRenderer textRenderer, long startTime) private voiddrawPart(DrawContext context, int int2, int int3, int int4, int int5) intprivate static ImmutableList<OrderedText> getTextAsList(@Nullable Text text) getType()intgetWidth()voidhide()static voidhide(ToastManager manager, SystemToast.Type type) voidsetContent(Text title, @Nullable Text description) static voidshow(ToastManager manager, SystemToast.Type type, Text title, @Nullable Text description) voidupdate(ToastManager manager, long time) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.toast.Toast
getRequiredSpaceCount
-
Field Details
-
TEXTURE
- Mappings:
Namespace Name Mixin selector named TEXTURELnet/minecraft/client/toast/SystemToast;TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45396Lnet/minecraft/class_370;field_45396:Lnet/minecraft/class_2960;official aLfmj;a:Lalb;
-
MIN_WIDTH
private static final int MIN_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_WIDTHLnet/minecraft/client/toast/SystemToast;MIN_WIDTH:Iintermediary field_32219Lnet/minecraft/class_370;field_32219:Iofficial eLfmj;e:I
-
LINE_HEIGHT
private static final int LINE_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named LINE_HEIGHTLnet/minecraft/client/toast/SystemToast;LINE_HEIGHT:Iintermediary field_39926Lnet/minecraft/class_370;field_39926:Iofficial fLfmj;f:I
-
PADDING_Y
private static final int PADDING_Y- See Also:
- Mappings:
Namespace Name Mixin selector named PADDING_YLnet/minecraft/client/toast/SystemToast;PADDING_Y:Iintermediary field_39927Lnet/minecraft/class_370;field_39927:Iofficial gLfmj;g:I
-
type
- Mappings:
Namespace Name Mixin selector named typeLnet/minecraft/client/toast/SystemToast;type:Lnet/minecraft/client/toast/SystemToast$Type;intermediary field_2213Lnet/minecraft/class_370;field_2213:Lnet/minecraft/class_370$class_9037;official hLfmj;h:Lfmj$a;
-
title
- Mappings:
Namespace Name Mixin selector named titleLnet/minecraft/client/toast/SystemToast;title:Lnet/minecraft/text/Text;intermediary field_2215Lnet/minecraft/class_370;field_2215:Lnet/minecraft/class_2561;official iLfmj;i:Lxd;
-
lines
- Mappings:
Namespace Name Mixin selector named linesLnet/minecraft/client/toast/SystemToast;lines:Ljava/util/List;intermediary field_25037Lnet/minecraft/class_370;field_25037:Ljava/util/List;official jLfmj;j:Ljava/util/List;
-
startTime
private long startTime- Mappings:
Namespace Name Mixin selector named startTimeLnet/minecraft/client/toast/SystemToast;startTime:Jintermediary field_2216Lnet/minecraft/class_370;field_2216:Jofficial kLfmj;k:J
-
justUpdated
private boolean justUpdated- Mappings:
Namespace Name Mixin selector named justUpdatedLnet/minecraft/client/toast/SystemToast;justUpdated:Zintermediary field_2214Lnet/minecraft/class_370;field_2214:Zofficial lLfmj;l:Z
-
width
private final int width- Mappings:
Namespace Name Mixin selector named widthLnet/minecraft/client/toast/SystemToast;width:Iintermediary field_25038Lnet/minecraft/class_370;field_25038:Iofficial mLfmj;m:I
-
visibility
- Mappings:
Namespace Name Mixin selector named visibilityLnet/minecraft/client/toast/SystemToast;visibility:Lnet/minecraft/client/toast/Toast$Visibility;intermediary field_52784Lnet/minecraft/class_370;field_52784:Lnet/minecraft/class_368$class_369;official oLfmj;o:Lfmk$a;
-
-
Constructor Details
-
SystemToast
- 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;)Vintermediary <init>Lnet/minecraft/class_370;<init>(Lnet/minecraft/class_370$class_9037;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)Vofficial <init>Lfmj;<init>(Lfmj$a;Lxd;Lxd;)V
-
SystemToast
- 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)Vintermediary <init>Lnet/minecraft/class_370;<init>(Lnet/minecraft/class_370$class_9037;Lnet/minecraft/class_2561;Ljava/util/List;I)Vofficial <init>Lfmj;<init>(Lfmj$a;Lxd;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 createLnet/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_29047Lnet/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 aLfmj;a(Lfib;Lfmj$a;Lxd;Lxd;)Lfmj;
-
getTextAsList
- Mappings:
Namespace Name Mixin selector named getTextAsListLnet/minecraft/client/toast/SystemToast;getTextAsList(Lnet/minecraft/text/Text;)Lcom/google/common/collect/ImmutableList;intermediary method_29626Lnet/minecraft/class_370;method_29626(Lnet/minecraft/class_2561;)Lcom/google/common/collect/ImmutableList;official aLfmj;a(Lxd;)Lcom/google/common/collect/ImmutableList;
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
hide
public void hide()- Mappings:
Namespace Name Mixin selector named hideLnet/minecraft/client/toast/SystemToast;hide()Vintermediary method_55508Lnet/minecraft/class_370;method_55508()Vofficial dLfmj;d()V
-
getVisibility
- Specified by:
getVisibilityin interfaceToast- Mappings:
Namespace Name Mixin selector named getVisibilityLnet/minecraft/client/toast/Toast;getVisibility()Lnet/minecraft/client/toast/Toast$Visibility;intermediary method_61988Lnet/minecraft/class_368;method_61988()Lnet/minecraft/class_368$class_369;official aLfmk;a()Lfmk$a;
-
update
-
draw
- Specified by:
drawin interfaceToast- Mappings:
Namespace Name Mixin selector named drawLnet/minecraft/client/toast/Toast;draw(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/client/font/TextRenderer;J)Vintermediary method_1986Lnet/minecraft/class_368;method_1986(Lnet/minecraft/class_332;Lnet/minecraft/class_327;J)Vofficial aLfmk;a(Lfjn;Lfjl;J)V
-
drawPart
- Mappings:
Namespace Name Mixin selector named drawPartLnet/minecraft/client/toast/SystemToast;drawPart(Lnet/minecraft/client/gui/DrawContext;IIII)Vintermediary method_29046Lnet/minecraft/class_370;method_29046(Lnet/minecraft/class_332;IIII)Vofficial aLfmj;a(Lfjn;IIII)V
-
setContent
- Mappings:
Namespace Name Mixin selector named setContentLnet/minecraft/client/toast/SystemToast;setContent(Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)Vintermediary method_1991Lnet/minecraft/class_370;method_1991(Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)Vofficial aLfmj;a(Lxd;Lxd;)V
-
getType
- Specified by:
getTypein interfaceToast- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/client/toast/SystemToast;getType()Lnet/minecraft/client/toast/SystemToast$Type;intermediary method_1989Lnet/minecraft/class_370;method_1989()Lnet/minecraft/class_370$class_9037;official eLfmj;e()Lfmj$a;
-
add
public static void add(ToastManager manager, SystemToast.Type type, Text title, @Nullable @Nullable Text description) - Mappings:
Namespace Name Mixin selector named addLnet/minecraft/client/toast/SystemToast;add(Lnet/minecraft/client/toast/ToastManager;Lnet/minecraft/client/toast/SystemToast$Type;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)Vintermediary method_27024Lnet/minecraft/class_370;method_27024(Lnet/minecraft/class_374;Lnet/minecraft/class_370$class_9037;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)Vofficial aLfmj;a(Lfml;Lfmj$a;Lxd;Lxd;)V
-
show
public static void show(ToastManager manager, SystemToast.Type type, Text title, @Nullable @Nullable Text description) - Mappings:
Namespace Name Mixin selector named showLnet/minecraft/client/toast/SystemToast;show(Lnet/minecraft/client/toast/ToastManager;Lnet/minecraft/client/toast/SystemToast$Type;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)Vintermediary method_1990Lnet/minecraft/class_370;method_1990(Lnet/minecraft/class_374;Lnet/minecraft/class_370$class_9037;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)Vofficial bLfmj;b(Lfml;Lfmj$a;Lxd;Lxd;)V
-
hide
- Mappings:
Namespace Name Mixin selector named hideLnet/minecraft/client/toast/SystemToast;hide(Lnet/minecraft/client/toast/ToastManager;Lnet/minecraft/client/toast/SystemToast$Type;)Vintermediary method_55507Lnet/minecraft/class_370;method_55507(Lnet/minecraft/class_374;Lnet/minecraft/class_370$class_9037;)Vofficial aLfmj;a(Lfml;Lfmj$a;)V
-
addWorldAccessFailureToast
- Mappings:
Namespace Name Mixin selector named addWorldAccessFailureToastLnet/minecraft/client/toast/SystemToast;addWorldAccessFailureToast(Lnet/minecraft/client/MinecraftClient;Ljava/lang/String;)Vintermediary method_27023Lnet/minecraft/class_370;method_27023(Lnet/minecraft/class_310;Ljava/lang/String;)Vofficial aLfmj;a(Lfib;Ljava/lang/String;)V
-
addWorldDeleteFailureToast
- Mappings:
Namespace Name Mixin selector named addWorldDeleteFailureToastLnet/minecraft/client/toast/SystemToast;addWorldDeleteFailureToast(Lnet/minecraft/client/MinecraftClient;Ljava/lang/String;)Vintermediary method_27025Lnet/minecraft/class_370;method_27025(Lnet/minecraft/class_310;Ljava/lang/String;)Vofficial bLfmj;b(Lfib;Ljava/lang/String;)V
-
addPackCopyFailure
- Mappings:
Namespace Name Mixin selector named addPackCopyFailureLnet/minecraft/client/toast/SystemToast;addPackCopyFailure(Lnet/minecraft/client/MinecraftClient;Ljava/lang/String;)Vintermediary method_29627Lnet/minecraft/class_370;method_29627(Lnet/minecraft/class_310;Ljava/lang/String;)Vofficial cLfmj;c(Lfib;Ljava/lang/String;)V
-
addFileDropFailure
- Mappings:
Namespace Name Mixin selector named addFileDropFailureLnet/minecraft/client/toast/SystemToast;addFileDropFailure(Lnet/minecraft/client/MinecraftClient;I)Vintermediary method_60865Lnet/minecraft/class_370;method_60865(Lnet/minecraft/class_310;I)Vofficial aLfmj;a(Lfib;I)V
-
addLowDiskSpace
- Mappings:
Namespace Name Mixin selector named addLowDiskSpaceLnet/minecraft/client/toast/SystemToast;addLowDiskSpace(Lnet/minecraft/client/MinecraftClient;)Vintermediary method_57723Lnet/minecraft/class_370;method_57723(Lnet/minecraft/class_310;)Vofficial aLfmj;a(Lfib;)V
-
addChunkLoadFailure
- Mappings:
Namespace Name Mixin selector named addChunkLoadFailureLnet/minecraft/client/toast/SystemToast;addChunkLoadFailure(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/util/math/ChunkPos;)Vintermediary method_57724Lnet/minecraft/class_370;method_57724(Lnet/minecraft/class_310;Lnet/minecraft/class_1923;)Vofficial aLfmj;a(Lfib;Ldcy;)V
-
addChunkSaveFailure
- Mappings:
Namespace Name Mixin selector named addChunkSaveFailureLnet/minecraft/client/toast/SystemToast;addChunkSaveFailure(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/util/math/ChunkPos;)Vintermediary method_57725Lnet/minecraft/class_370;method_57725(Lnet/minecraft/class_310;Lnet/minecraft/class_1923;)Vofficial bLfmj;b(Lfib;Ldcy;)V
-