Package net.minecraft.client.toast
Class SystemToast
java.lang.Object
net.minecraft.client.toast.SystemToast
- All Implemented Interfaces:
Toast
- Mappings:
Namespace Name official ewtintermediary net/minecraft/class_370named 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 booleanprivate static final intprivate List<OrderedText>private static final intprivate static final intprivate longprivate static final Identifierprivate Textprivate final SystemToast.Typeprivate final intFields inherited from interface net.minecraft.client.toast.Toast
BASE_HEIGHT, 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 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) draw(DrawContext context, ToastManager manager, long startTime) private voiddrawPart(DrawContext context, int int2, int int3, int int4, int int5) intprivate static ImmutableList<OrderedText>getTextAsList(@Nullable Text text) getType()intgetWidth()voidsetContent(Text title, @Nullable Text description) static voidshow(ToastManager manager, SystemToast.Type type, Text title, @Nullable Text description) 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 official aLewt;a:Lagg;intermediary field_45396Lnet/minecraft/class_370;field_45396:Lnet/minecraft/class_2960;named TEXTURELnet/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 dLewt;d:Iintermediary field_32219Lnet/minecraft/class_370;field_32219:Inamed MIN_WIDTHLnet/minecraft/client/toast/SystemToast;MIN_WIDTH:I
-
LINE_HEIGHT
private static final int LINE_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector official eLewt;e:Iintermediary field_39926Lnet/minecraft/class_370;field_39926:Inamed LINE_HEIGHTLnet/minecraft/client/toast/SystemToast;LINE_HEIGHT:I
-
PADDING_Y
private static final int PADDING_Y- See Also:
- Mappings:
Namespace Name Mixin selector official fLewt;f:Iintermediary field_39927Lnet/minecraft/class_370;field_39927:Inamed PADDING_YLnet/minecraft/client/toast/SystemToast;PADDING_Y:I
-
type
- Mappings:
Namespace Name Mixin selector official gLewt;g:Lewt$a;intermediary field_2213Lnet/minecraft/class_370;field_2213:Lnet/minecraft/class_370$class_371;named typeLnet/minecraft/client/toast/SystemToast;type:Lnet/minecraft/client/toast/SystemToast$Type;
-
title
- Mappings:
Namespace Name Mixin selector official hLewt;h:Lur;intermediary field_2215Lnet/minecraft/class_370;field_2215:Lnet/minecraft/class_2561;named titleLnet/minecraft/client/toast/SystemToast;title:Lnet/minecraft/text/Text;
-
lines
- Mappings:
Namespace Name Mixin selector official iLewt;i:Ljava/util/List;intermediary field_25037Lnet/minecraft/class_370;field_25037:Ljava/util/List;named linesLnet/minecraft/client/toast/SystemToast;lines:Ljava/util/List;
-
startTime
private long startTime- Mappings:
Namespace Name Mixin selector official jLewt;j:Jintermediary field_2216Lnet/minecraft/class_370;field_2216:Jnamed startTimeLnet/minecraft/client/toast/SystemToast;startTime:J
-
justUpdated
private boolean justUpdated- Mappings:
Namespace Name Mixin selector official kLewt;k:Zintermediary field_2214Lnet/minecraft/class_370;field_2214:Znamed justUpdatedLnet/minecraft/client/toast/SystemToast;justUpdated:Z
-
width
private final int width- Mappings:
Namespace Name Mixin selector official lLewt;l:Iintermediary field_25038Lnet/minecraft/class_370;field_25038:Inamed widthLnet/minecraft/client/toast/SystemToast;width:I
-
-
Constructor Details
-
SystemToast
- Mappings:
Namespace Name Mixin selector official <init>Lewt;<init>(Lewt$a;Lur;Lur;)Vintermediary <init>Lnet/minecraft/class_370;<init>(Lnet/minecraft/class_370$class_371;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)Vnamed <init>Lnet/minecraft/client/toast/SystemToast;<init>(Lnet/minecraft/client/toast/SystemToast$Type;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)V
-
SystemToast
- Mappings:
Namespace Name Mixin selector official <init>Lewt;<init>(Lewt$a;Lur;Ljava/util/List;I)Vintermediary <init>Lnet/minecraft/class_370;<init>(Lnet/minecraft/class_370$class_371;Lnet/minecraft/class_2561;Ljava/util/List;I)Vnamed <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 aLewt;a(Lesr;Lewt$a;Lur;Lur;)Lewt;intermediary method_29047Lnet/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 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;
-
getTextAsList
- Mappings:
Namespace Name Mixin selector official aLewt;a(Lur;)Lcom/google/common/collect/ImmutableList;intermediary method_29626Lnet/minecraft/class_370;method_29626(Lnet/minecraft/class_2561;)Lcom/google/common/collect/ImmutableList;named getTextAsListLnet/minecraft/client/toast/SystemToast;getTextAsList(Lnet/minecraft/text/Text;)Lcom/google/common/collect/ImmutableList;
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
draw
- Specified by:
drawin interfaceToast- Mappings:
Namespace Name Mixin selector official aLewu;a(Leub;Lewv;J)Lewu$a;intermediary method_1986Lnet/minecraft/class_368;method_1986(Lnet/minecraft/class_332;Lnet/minecraft/class_374;J)Lnet/minecraft/class_368$class_369;named drawLnet/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 aLewt;a(Leub;IIII)Vintermediary method_29046Lnet/minecraft/class_370;method_29046(Lnet/minecraft/class_332;IIII)Vnamed drawPartLnet/minecraft/client/toast/SystemToast;drawPart(Lnet/minecraft/client/gui/DrawContext;IIII)V
-
setContent
- Mappings:
Namespace Name Mixin selector official aLewt;a(Lur;Lur;)Vintermediary method_1991Lnet/minecraft/class_370;method_1991(Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)Vnamed setContentLnet/minecraft/client/toast/SystemToast;setContent(Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)V
-
getType
- Specified by:
getTypein interfaceToast- Mappings:
Namespace Name Mixin selector official cLewt;c()Lewt$a;intermediary method_1989Lnet/minecraft/class_370;method_1989()Lnet/minecraft/class_370$class_371;named getTypeLnet/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 aLewt;a(Lewv;Lewt$a;Lur;Lur;)Vintermediary method_27024Lnet/minecraft/class_370;method_27024(Lnet/minecraft/class_374;Lnet/minecraft/class_370$class_371;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)Vnamed 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;)V
-
show
public static void show(ToastManager manager, SystemToast.Type type, Text title, @Nullable @Nullable Text description) - Mappings:
Namespace Name Mixin selector official bLewt;b(Lewv;Lewt$a;Lur;Lur;)Vintermediary method_1990Lnet/minecraft/class_370;method_1990(Lnet/minecraft/class_374;Lnet/minecraft/class_370$class_371;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)Vnamed 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;)V
-
addWorldAccessFailureToast
- Mappings:
Namespace Name Mixin selector official aLewt;a(Lesr;Ljava/lang/String;)Vintermediary method_27023Lnet/minecraft/class_370;method_27023(Lnet/minecraft/class_310;Ljava/lang/String;)Vnamed addWorldAccessFailureToastLnet/minecraft/client/toast/SystemToast;addWorldAccessFailureToast(Lnet/minecraft/client/MinecraftClient;Ljava/lang/String;)V
-
addWorldDeleteFailureToast
- Mappings:
Namespace Name Mixin selector official bLewt;b(Lesr;Ljava/lang/String;)Vintermediary method_27025Lnet/minecraft/class_370;method_27025(Lnet/minecraft/class_310;Ljava/lang/String;)Vnamed addWorldDeleteFailureToastLnet/minecraft/client/toast/SystemToast;addWorldDeleteFailureToast(Lnet/minecraft/client/MinecraftClient;Ljava/lang/String;)V
-
addPackCopyFailure
- Mappings:
Namespace Name Mixin selector official cLewt;c(Lesr;Ljava/lang/String;)Vintermediary method_29627Lnet/minecraft/class_370;method_29627(Lnet/minecraft/class_310;Ljava/lang/String;)Vnamed addPackCopyFailureLnet/minecraft/client/toast/SystemToast;addPackCopyFailure(Lnet/minecraft/client/MinecraftClient;Ljava/lang/String;)V
-