Package net.minecraft.client.network
Class ServerInfo.ChatPreview
java.lang.Object
net.minecraft.client.network.ServerInfo.ChatPreview
- Enclosing class:
ServerInfo
- Mappings:
Namespace Name official ets$aintermediary net/minecraft/class_642$class_7484named net/minecraft/client/network/ServerInfo$ChatPreview
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanstatic final com.mojang.serialization.Codec<ServerInfo.ChatPreview>private boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ServerInfo.ChatPreviewcopy()booleanReturns whether the player acknowledged the chat preview warning.voidbooleanIf the chat preview toast is never shown, returnstrueand marks that the toast was shown; otherwise, returnsfalse.
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official aLets$a;a:Lcom/mojang/serialization/Codec;intermediary field_39357Lnet/minecraft/class_642$class_7484;field_39357:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/client/network/ServerInfo$ChatPreview;CODEC:Lcom/mojang/serialization/Codec;
-
acknowledged
private boolean acknowledged- Mappings:
Namespace Name Mixin selector official bLets$a;b:Zintermediary field_39358Lnet/minecraft/class_642$class_7484;field_39358:Znamed acknowledgedLnet/minecraft/client/network/ServerInfo$ChatPreview;acknowledged:Z
-
toastShown
private boolean toastShown- Mappings:
Namespace Name Mixin selector official cLets$a;c:Zintermediary field_39359Lnet/minecraft/class_642$class_7484;field_39359:Znamed toastShownLnet/minecraft/client/network/ServerInfo$ChatPreview;toastShown:Z
-
-
Constructor Details
-
ChatPreview
ChatPreview(boolean acknowledged, boolean toastShown) - Mappings:
Namespace Name Mixin selector official <init>Lets$a;<init>(ZZ)Vintermediary <init>Lnet/minecraft/class_642$class_7484;<init>(ZZ)Vnamed <init>Lnet/minecraft/client/network/ServerInfo$ChatPreview;<init>(ZZ)V
-
-
Method Details
-
setAcknowledged
public void setAcknowledged()- Mappings:
Namespace Name Mixin selector official aLets$a;a()Vintermediary method_44083Lnet/minecraft/class_642$class_7484;method_44083()Vnamed setAcknowledgedLnet/minecraft/client/network/ServerInfo$ChatPreview;setAcknowledged()V
-
showToast
public boolean showToast()If the chat preview toast is never shown, returnstrueand marks that the toast was shown; otherwise, returnsfalse.- Mappings:
Namespace Name Mixin selector official bLets$a;b()Zintermediary method_44086Lnet/minecraft/class_642$class_7484;method_44086()Znamed showToastLnet/minecraft/client/network/ServerInfo$ChatPreview;showToast()Z
-
isAcknowledged
public boolean isAcknowledged()Returns whether the player acknowledged the chat preview warning.- Returns:
- whether the player acknowledged the chat preview warning
- Mappings:
Namespace Name Mixin selector official cLets$a;c()Zintermediary method_44088Lnet/minecraft/class_642$class_7484;method_44088()Znamed isAcknowledgedLnet/minecraft/client/network/ServerInfo$ChatPreview;isAcknowledged()Z
-
copy
- Mappings:
Namespace Name Mixin selector official dLets$a;d()Lets$a;intermediary method_44089Lnet/minecraft/class_642$class_7484;method_44089()Lnet/minecraft/class_642$class_7484;named copyLnet/minecraft/client/network/ServerInfo$ChatPreview;copy()Lnet/minecraft/client/network/ServerInfo$ChatPreview;
-