Package net.minecraft.client.network
Class ServerInfo.ChatPreview
java.lang.Object
net.minecraft.client.network.ServerInfo.ChatPreview
- Enclosing class:
ServerInfo
- Mappings:
Namespace Name official etr$a
intermediary net/minecraft/class_642$class_7484
named net/minecraft/client/network/ServerInfo$ChatPreview
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
static final com.mojang.serialization.Codec<ServerInfo.ChatPreview>
private boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate ServerInfo.ChatPreview
copy()
boolean
Returns whether the player acknowledged the chat preview warning.void
boolean
If the chat preview toast is never shown, returnstrue
and marks that the toast was shown; otherwise, returnsfalse
.
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Letr$a;a:Lcom/mojang/serialization/Codec;
intermediary field_39357
Lnet/minecraft/class_642$class_7484;field_39357:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/client/network/ServerInfo$ChatPreview;CODEC:Lcom/mojang/serialization/Codec;
-
acknowledged
private boolean acknowledged- Mappings:
Namespace Name Mixin selector official b
Letr$a;b:Z
intermediary field_39358
Lnet/minecraft/class_642$class_7484;field_39358:Z
named acknowledged
Lnet/minecraft/client/network/ServerInfo$ChatPreview;acknowledged:Z
-
toastShown
private boolean toastShown- Mappings:
Namespace Name Mixin selector official c
Letr$a;c:Z
intermediary field_39359
Lnet/minecraft/class_642$class_7484;field_39359:Z
named toastShown
Lnet/minecraft/client/network/ServerInfo$ChatPreview;toastShown:Z
-
-
Constructor Details
-
ChatPreview
ChatPreview(boolean acknowledged, boolean toastShown) - Mappings:
Namespace Name Mixin selector official <init>
Letr$a;<init>(ZZ)V
intermediary <init>
Lnet/minecraft/class_642$class_7484;<init>(ZZ)V
named <init>
Lnet/minecraft/client/network/ServerInfo$ChatPreview;<init>(ZZ)V
-
-
Method Details
-
setAcknowledged
public void setAcknowledged()- Mappings:
Namespace Name Mixin selector official a
Letr$a;a()V
intermediary method_44083
Lnet/minecraft/class_642$class_7484;method_44083()V
named setAcknowledged
Lnet/minecraft/client/network/ServerInfo$ChatPreview;setAcknowledged()V
-
showToast
public boolean showToast()If the chat preview toast is never shown, returnstrue
and marks that the toast was shown; otherwise, returnsfalse
.- Mappings:
Namespace Name Mixin selector official b
Letr$a;b()Z
intermediary method_44086
Lnet/minecraft/class_642$class_7484;method_44086()Z
named showToast
Lnet/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 c
Letr$a;c()Z
intermediary method_44088
Lnet/minecraft/class_642$class_7484;method_44088()Z
named isAcknowledged
Lnet/minecraft/client/network/ServerInfo$ChatPreview;isAcknowledged()Z
-
copy
- Mappings:
Namespace Name Mixin selector official d
Letr$a;d()Letr$a;
intermediary method_44089
Lnet/minecraft/class_642$class_7484;method_44089()Lnet/minecraft/class_642$class_7484;
named copy
Lnet/minecraft/client/network/ServerInfo$ChatPreview;copy()Lnet/minecraft/client/network/ServerInfo$ChatPreview;
-