类 SystemToast
- java.lang.Object
-
- net.minecraft.client.toast.SystemToast
-
- 所有已实现的接口:
Toast
@Environment(CLIENT) public class SystemToast extends Object implements Toast
- Mappings:
Namespace Name official dxcintermediary net/minecraft/class_370named net/minecraft/client/toast/SystemToast
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classSystemToast.Type-
从接口继承的嵌套类/接口 net.minecraft.client.toast.Toast
Toast.Visibility
-
-
字段概要
字段 修饰符和类型 字段 说明 private static longfield_32218private static intfield_32219private booleanjustUpdatedprivate List<OrderedText>linesprivate longstartTimeprivate Texttitleprivate SystemToast.Typetypeprivate intwidth
-
构造器概要
构造器 限定符 构造器 说明 SystemToast(SystemToast.Type type, Text title, @Nullable Text description)privateSystemToast(SystemToast.Type type, Text title, List<OrderedText> lines, int width)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static 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)Toast.Visibilitydraw(MatrixStack matrices, ToastManager manager, long startTime)private voiddrawPart(MatrixStack matrices, ToastManager manager, int width, int textureV, int y, int height)private static ImmutableList<OrderedText>getTextAsList(@Nullable Text text)SystemToast.TypegetType()intgetWidth()voidsetContent(Text title, @Nullable Text description)static voidshow(ToastManager manager, SystemToast.Type type, Text title, @Nullable Text description)
-
-
-
字段详细资料
-
field_32218
private static final long field_32218
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official cLdxc;c:Jintermediary field_32218Lnet/minecraft/class_370;field_32218:Jnamed field_32218Lnet/minecraft/client/toast/SystemToast;field_32218:J
-
field_32219
private static final int field_32219
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official dLdxc;d:Iintermediary field_32219Lnet/minecraft/class_370;field_32219:Inamed field_32219Lnet/minecraft/client/toast/SystemToast;field_32219:I
-
type
private final SystemToast.Type type
- Mappings:
Namespace Name Mixin selector official eLdxc;e:Ldxc$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
private Text title
- Mappings:
Namespace Name Mixin selector official fLdxc;f:Lon;intermediary field_2215Lnet/minecraft/class_370;field_2215:Lnet/minecraft/class_2561;named titleLnet/minecraft/client/toast/SystemToast;title:Lnet/minecraft/text/Text;
-
lines
private List<OrderedText> lines
- Mappings:
Namespace Name Mixin selector official gLdxc;g: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 hLdxc;h: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 iLdxc;i: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 jLdxc;j:Iintermediary field_25038Lnet/minecraft/class_370;field_25038:Inamed widthLnet/minecraft/client/toast/SystemToast;width:I
-
-
构造器详细资料
-
SystemToast
public SystemToast(SystemToast.Type type, Text title, @Nullable @Nullable Text description)
- Mappings:
Namespace Name Mixin selector official <init>Ldxc;<init>(Ldxc$a;Lon;Lon;)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
private SystemToast(SystemToast.Type type, Text title, List<OrderedText> lines, int width)
- Mappings:
Namespace Name Mixin selector official <init>Ldxc;<init>(Ldxc$a;Lon;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
-
-
方法详细资料
-
create
public static SystemToast create(MinecraftClient client, SystemToast.Type type, Text title, Text description)
- Mappings:
Namespace Name Mixin selector official aLdxc;a(Ldum;Ldxc$a;Lon;Lon;)Ldxc;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
private static ImmutableList<OrderedText> getTextAsList(@Nullable @Nullable Text text)
- Mappings:
Namespace Name Mixin selector official aLdxc;a(Lon;)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()
-
draw
public Toast.Visibility draw(MatrixStack matrices, ToastManager manager, long startTime)
- 指定者:
draw在接口中Toast- Mappings:
Namespace Name Mixin selector official aLdxd;a(Ldpi;Ldxe;J)Ldxd$a;intermediary method_1986Lnet/minecraft/class_368;method_1986(Lnet/minecraft/class_4587;Lnet/minecraft/class_374;J)Lnet/minecraft/class_368$class_369;named drawLnet/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 aLdxc;a(Ldpi;Ldxe;IIII)Vintermediary method_29046Lnet/minecraft/class_370;method_29046(Lnet/minecraft/class_4587;Lnet/minecraft/class_374;IIII)Vnamed drawPartLnet/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 aLdxc;a(Lon;Lon;)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
public SystemToast.Type getType()
-
add
public static void add(ToastManager manager, SystemToast.Type type, Text title, @Nullable @Nullable Text description)
- Mappings:
Namespace Name Mixin selector official aLdxc;a(Ldxe;Ldxc$a;Lon;Lon;)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 bLdxc;b(Ldxe;Ldxc$a;Lon;Lon;)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
public static void addWorldAccessFailureToast(MinecraftClient client, String worldName)
- Mappings:
Namespace Name Mixin selector official aLdxc;a(Ldum;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
public static void addWorldDeleteFailureToast(MinecraftClient client, String worldName)
- Mappings:
Namespace Name Mixin selector official bLdxc;b(Ldum;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
public static void addPackCopyFailure(MinecraftClient client, String directory)
- Mappings:
Namespace Name Mixin selector official cLdxc;c(Ldum;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
-
-