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 vd
intermediary net/minecraft/class_7495
named net/minecraft/network/packet/s2c/play/ServerMetadataS2CPacket
  • Field Details

    • description

      private final Optional<Text> description
      Mappings:
      Namespace Name Mixin selector
      official a Lvd;a:Ljava/util/Optional;
      intermediary field_39387 Lnet/minecraft/class_7495;field_39387:Ljava/util/Optional;
      named description Lnet/minecraft/network/packet/s2c/play/ServerMetadataS2CPacket;description:Ljava/util/Optional;
    • favicon

      private final Optional<String> favicon
      Mappings:
      Namespace Name Mixin selector
      official b Lvd;b:Ljava/util/Optional;
      intermediary field_39388 Lnet/minecraft/class_7495;field_39388:Ljava/util/Optional;
      named favicon Lnet/minecraft/network/packet/s2c/play/ServerMetadataS2CPacket;favicon:Ljava/util/Optional;
    • previewsChat

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

    • ServerMetadataS2CPacket

      public ServerMetadataS2CPacket(@Nullable @Nullable Text description, @Nullable @Nullable String favicon, boolean previewsChat)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lvd;<init>(Lrm;Ljava/lang/String;Z)V
      intermediary <init> Lnet/minecraft/class_7495;<init>(Lnet/minecraft/class_2561;Ljava/lang/String;Z)V
      named <init> Lnet/minecraft/network/packet/s2c/play/ServerMetadataS2CPacket;<init>(Lnet/minecraft/text/Text;Ljava/lang/String;Z)V
    • ServerMetadataS2CPacket

      public ServerMetadataS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lvd;<init>(Lqx;)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 Lso;a(Lqx;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/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 Lvd;a(Lsr;)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 Optional<Text> getDescription()
      Mappings:
      Namespace Name Mixin selector
      official b Lvd;b()Ljava/util/Optional;
      intermediary method_44132 Lnet/minecraft/class_7495;method_44132()Ljava/util/Optional;
      named getDescription Lnet/minecraft/network/packet/s2c/play/ServerMetadataS2CPacket;getDescription()Ljava/util/Optional;
    • getFavicon

      public Optional<String> getFavicon()
      Mappings:
      Namespace Name Mixin selector
      official c Lvd;c()Ljava/util/Optional;
      intermediary method_44133 Lnet/minecraft/class_7495;method_44133()Ljava/util/Optional;
      named getFavicon Lnet/minecraft/network/packet/s2c/play/ServerMetadataS2CPacket;getFavicon()Ljava/util/Optional;
    • shouldPreviewChat

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