Package net.minecraft.client.toast
Class SystemToast
java.lang.Object
net.minecraft.client.toast.SystemToast
- All Implemented Interfaces:
Toast
- Mappings:
Namespace Name official ezl
intermediary net/minecraft/class_370
named net/minecraft/client/toast/SystemToast
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.client.toast.Toast
Toast.Visibility
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
private static final int
private List<OrderedText>
private static final int
private static final int
private long
private static final Identifier
private Text
private final SystemToast.class_9037
private final int
Fields inherited from interface net.minecraft.client.toast.Toast
BASE_HEIGHT, TYPE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SystemToast
(SystemToast.class_9037 type, Text title, List<OrderedText> lines, int width) SystemToast
(SystemToast.class_9037 type, Text title, @Nullable Text description) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
add
(ToastManager manager, SystemToast.class_9037 type, Text title, @Nullable Text description) static void
addPackCopyFailure
(MinecraftClient client, String directory) static void
addWorldAccessFailureToast
(MinecraftClient client, String worldName) static void
addWorldDeleteFailureToast
(MinecraftClient client, String worldName) static SystemToast
create
(MinecraftClient client, SystemToast.class_9037 type, Text title, Text description) draw
(DrawContext context, ToastManager manager, long startTime) private void
drawPart
(DrawContext context, int int2, int int3, int int4, int int5) int
private static ImmutableList<OrderedText>
getTextAsList
(@Nullable Text text) getType()
int
getWidth()
static void
method_55507
(ToastManager toastManager, SystemToast.class_9037 class_9037) void
void
setContent
(Text title, @Nullable Text description) static void
show
(ToastManager manager, SystemToast.class_9037 type, Text title, @Nullable Text description) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.toast.Toast
getRequiredSpaceCount
-
Field Details
-
TEXTURE
- Mappings:
Namespace Name Mixin selector official a
Lezl;a:Lahg;
intermediary field_45396
Lnet/minecraft/class_370;field_45396:Lnet/minecraft/class_2960;
named TEXTURE
Lnet/minecraft/client/toast/SystemToast;TEXTURE:Lnet/minecraft/util/Identifier;
-
MIN_WIDTH
private static final int MIN_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lezl;d:I
intermediary field_32219
Lnet/minecraft/class_370;field_32219:I
named MIN_WIDTH
Lnet/minecraft/client/toast/SystemToast;MIN_WIDTH:I
-
LINE_HEIGHT
private static final int LINE_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector official e
Lezl;e:I
intermediary field_39926
Lnet/minecraft/class_370;field_39926:I
named LINE_HEIGHT
Lnet/minecraft/client/toast/SystemToast;LINE_HEIGHT:I
-
PADDING_Y
private static final int PADDING_Y- See Also:
- Mappings:
Namespace Name Mixin selector official f
Lezl;f:I
intermediary field_39927
Lnet/minecraft/class_370;field_39927:I
named PADDING_Y
Lnet/minecraft/client/toast/SystemToast;PADDING_Y:I
-
type
- Mappings:
Namespace Name Mixin selector official g
Lezl;g:Lezl$a;
intermediary field_2213
Lnet/minecraft/class_370;field_2213:Lnet/minecraft/class_370$class_9037;
named type
Lnet/minecraft/client/toast/SystemToast;type:Lnet/minecraft/client/toast/SystemToast$class_9037;
-
title
- Mappings:
Namespace Name Mixin selector official h
Lezl;h:Lvf;
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
- Mappings:
Namespace Name Mixin selector official i
Lezl;i: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 j
Lezl;j: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 k
Lezl;k: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 l
Lezl;l:I
intermediary field_25038
Lnet/minecraft/class_370;field_25038:I
named width
Lnet/minecraft/client/toast/SystemToast;width:I
-
field_47582
private boolean field_47582- Mappings:
Namespace Name Mixin selector official m
Lezl;m:Z
intermediary field_47582
Lnet/minecraft/class_370;field_47582:Z
named field_47582
Lnet/minecraft/client/toast/SystemToast;field_47582:Z
-
-
Constructor Details
-
SystemToast
- Mappings:
Namespace Name Mixin selector official <init>
Lezl;<init>(Lezl$a;Lvf;Lvf;)V
intermediary <init>
Lnet/minecraft/class_370;<init>(Lnet/minecraft/class_370$class_9037;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)V
named <init>
Lnet/minecraft/client/toast/SystemToast;<init>(Lnet/minecraft/client/toast/SystemToast$class_9037;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)V
-
SystemToast
- Mappings:
Namespace Name Mixin selector official <init>
Lezl;<init>(Lezl$a;Lvf;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
named <init>
Lnet/minecraft/client/toast/SystemToast;<init>(Lnet/minecraft/client/toast/SystemToast$class_9037;Lnet/minecraft/text/Text;Ljava/util/List;I)V
-
-
Method Details
-
create
public static SystemToast create(MinecraftClient client, SystemToast.class_9037 type, Text title, Text description) - Mappings:
Namespace Name Mixin selector official a
Lezl;a(Levg;Lezl$a;Lvf;Lvf;)Lezl;
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;
named create
Lnet/minecraft/client/toast/SystemToast;create(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/toast/SystemToast$class_9037;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)Lnet/minecraft/client/toast/SystemToast;
-
getTextAsList
- Mappings:
Namespace Name Mixin selector official a
Lezl;a(Lvf;)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() -
getHeight
public int getHeight() -
method_55508
public void method_55508()- Mappings:
Namespace Name Mixin selector official c
Lezl;c()V
intermediary method_55508
Lnet/minecraft/class_370;method_55508()V
named method_55508
Lnet/minecraft/client/toast/SystemToast;method_55508()V
-
draw
- Specified by:
draw
in interfaceToast
- Mappings:
Namespace Name Mixin selector official a
Lezm;a(Lews;Lezn;J)Lezm$a;
intermediary method_1986
Lnet/minecraft/class_368;method_1986(Lnet/minecraft/class_332;Lnet/minecraft/class_374;J)Lnet/minecraft/class_368$class_369;
named draw
Lnet/minecraft/client/toast/Toast;draw(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/client/toast/ToastManager;J)Lnet/minecraft/client/toast/Toast$Visibility;
-
drawPart
- Mappings:
Namespace Name Mixin selector official a
Lezl;a(Lews;IIII)V
intermediary method_29046
Lnet/minecraft/class_370;method_29046(Lnet/minecraft/class_332;IIII)V
named drawPart
Lnet/minecraft/client/toast/SystemToast;drawPart(Lnet/minecraft/client/gui/DrawContext;IIII)V
-
setContent
- Mappings:
Namespace Name Mixin selector official a
Lezl;a(Lvf;Lvf;)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
- Specified by:
getType
in interfaceToast
- Mappings:
Namespace Name Mixin selector official d
Lezl;d()Lezl$a;
intermediary method_1989
Lnet/minecraft/class_370;method_1989()Lnet/minecraft/class_370$class_9037;
named getType
Lnet/minecraft/client/toast/SystemToast;getType()Lnet/minecraft/client/toast/SystemToast$class_9037;
-
add
public static void add(ToastManager manager, SystemToast.class_9037 type, Text title, @Nullable @Nullable Text description) - Mappings:
Namespace Name Mixin selector official a
Lezl;a(Lezn;Lezl$a;Lvf;Lvf;)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
named add
Lnet/minecraft/client/toast/SystemToast;add(Lnet/minecraft/client/toast/ToastManager;Lnet/minecraft/client/toast/SystemToast$class_9037;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)V
-
show
public static void show(ToastManager manager, SystemToast.class_9037 type, Text title, @Nullable @Nullable Text description) - Mappings:
Namespace Name Mixin selector official b
Lezl;b(Lezn;Lezl$a;Lvf;Lvf;)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
named show
Lnet/minecraft/client/toast/SystemToast;show(Lnet/minecraft/client/toast/ToastManager;Lnet/minecraft/client/toast/SystemToast$class_9037;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)V
-
method_55507
- Mappings:
Namespace Name Mixin selector official a
Lezl;a(Lezn;Lezl$a;)V
intermediary method_55507
Lnet/minecraft/class_370;method_55507(Lnet/minecraft/class_374;Lnet/minecraft/class_370$class_9037;)V
named method_55507
Lnet/minecraft/client/toast/SystemToast;method_55507(Lnet/minecraft/client/toast/ToastManager;Lnet/minecraft/client/toast/SystemToast$class_9037;)V
-
addWorldAccessFailureToast
- Mappings:
Namespace Name Mixin selector official a
Lezl;a(Levg;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
- Mappings:
Namespace Name Mixin selector official b
Lezl;b(Levg;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
- Mappings:
Namespace Name Mixin selector official c
Lezl;c(Levg;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
-