Class ServerInfo.ChatPreview

java.lang.Object
net.minecraft.client.network.ServerInfo.ChatPreview
Enclosing class:
ServerInfo

@Environment(CLIENT) public static class ServerInfo.ChatPreview extends Object
Mappings:
Namespace Name
official etr$a
intermediary net/minecraft/class_642$class_7484
named net/minecraft/client/network/ServerInfo$ChatPreview
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<ServerInfo.ChatPreview> 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, returns true and marks that the toast was shown; otherwise, returns false.
      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

      private ServerInfo.ChatPreview 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;