Class ServerMetadataS2CPacket

java.lang.Object
net.minecraft.network.packet.s2c.play.ServerMetadataS2CPacket
All Implemented Interfaces:
Packet<ClientPlayPacketListener>

public class ServerMetadataS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Mappings:
Namespace Name
official xj
intermediary net/minecraft/class_7495
named net/minecraft/network/packet/s2c/play/ServerMetadataS2CPacket
  • Field Details

    • description

      private final Text description
      Mappings:
      Namespace Name Mixin selector
      official a Lxj;a:Lsw;
      intermediary field_39387 Lnet/minecraft/class_7495;field_39387:Lnet/minecraft/class_2561;
      named description Lnet/minecraft/network/packet/s2c/play/ServerMetadataS2CPacket;description:Lnet/minecraft/text/Text;
    • favicon

      private final Optional<byte[]> favicon
      Mappings:
      Namespace Name Mixin selector
      official b Lxj;b:Ljava/util/Optional;
      intermediary field_42967 Lnet/minecraft/class_7495;field_42967:Ljava/util/Optional;
      named favicon Lnet/minecraft/network/packet/s2c/play/ServerMetadataS2CPacket;favicon:Ljava/util/Optional;
    • secureChatEnforced

      private final boolean secureChatEnforced
      Mappings:
      Namespace Name Mixin selector
      official c Lxj;c:Z
      intermediary field_39920 Lnet/minecraft/class_7495;field_39920:Z
      named secureChatEnforced Lnet/minecraft/network/packet/s2c/play/ServerMetadataS2CPacket;secureChatEnforced:Z
  • Constructor Details

    • ServerMetadataS2CPacket

      public ServerMetadataS2CPacket(Text description, Optional<byte[]> favicon, boolean previewsChat)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lxj;<init>(Lsw;Ljava/util/Optional;Z)V
      intermediary <init> Lnet/minecraft/class_7495;<init>(Lnet/minecraft/class_2561;Ljava/util/Optional;Z)V
      named <init> Lnet/minecraft/network/packet/s2c/play/ServerMetadataS2CPacket;<init>(Lnet/minecraft/text/Text;Ljava/util/Optional;Z)V
    • ServerMetadataS2CPacket

      public ServerMetadataS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lxj;<init>(Lsf;)V
      intermediary <init> Lnet/minecraft/class_7495;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/ServerMetadataS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
  • Method Details

    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Luo;a(Lsf;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lxj;a(Lur;)V
      intermediary method_44131 Lnet/minecraft/class_7495;method_44131(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/ServerMetadataS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • getDescription

      public Text getDescription()
      Mappings:
      Namespace Name Mixin selector
      official a Lxj;a()Lsw;
      intermediary method_44132 Lnet/minecraft/class_7495;method_44132()Lnet/minecraft/class_2561;
      named getDescription Lnet/minecraft/network/packet/s2c/play/ServerMetadataS2CPacket;getDescription()Lnet/minecraft/text/Text;
    • getFavicon

      public Optional<byte[]> getFavicon()
      Mappings:
      Namespace Name Mixin selector
      official c Lxj;c()Ljava/util/Optional;
      intermediary method_49398 Lnet/minecraft/class_7495;method_49398()Ljava/util/Optional;
      named getFavicon Lnet/minecraft/network/packet/s2c/play/ServerMetadataS2CPacket;getFavicon()Ljava/util/Optional;
    • isSecureChatEnforced

      public boolean isSecureChatEnforced()
      Mappings:
      Namespace Name Mixin selector
      official d Lxj;d()Z
      intermediary method_45058 Lnet/minecraft/class_7495;method_45058()Z
      named isSecureChatEnforced Lnet/minecraft/network/packet/s2c/play/ServerMetadataS2CPacket;isSecureChatEnforced()Z