Class PlayerListS2CPacket

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

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

    • action

      private final PlayerListS2CPacket.Action action
      Mappings:
      Namespace Name Mixin selector
      official a Lro;a:Lro$a;
      intermediary field_12368 Lnet/minecraft/class_2703;field_12368:Lnet/minecraft/class_2703$class_5893;
      named action Lnet/minecraft/network/packet/s2c/play/PlayerListS2CPacket;action:Lnet/minecraft/network/packet/s2c/play/PlayerListS2CPacket$Action;
    • entries

      private final List<PlayerListS2CPacket.Entry> entries
      Mappings:
      Namespace Name Mixin selector
      official b Lro;b:Ljava/util/List;
      intermediary field_12369 Lnet/minecraft/class_2703;field_12369:Ljava/util/List;
      named entries Lnet/minecraft/network/packet/s2c/play/PlayerListS2CPacket;entries:Ljava/util/List;
  • Constructor Details

    • PlayerListS2CPacket

      public PlayerListS2CPacket(PlayerListS2CPacket.Action action, ServerPlayerEntity[] players)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lro;<init>(Lro$a;[Labs;)V
      intermediary <init> Lnet/minecraft/class_2703;<init>(Lnet/minecraft/class_2703$class_5893;[Lnet/minecraft/class_3222;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/PlayerListS2CPacket;<init>(Lnet/minecraft/network/packet/s2c/play/PlayerListS2CPacket$Action;[Lnet/minecraft/server/network/ServerPlayerEntity;)V
    • PlayerListS2CPacket

      public PlayerListS2CPacket(PlayerListS2CPacket.Action action, Collection<ServerPlayerEntity> players)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lro;<init>(Lro$a;Ljava/util/Collection;)V
      intermediary <init> Lnet/minecraft/class_2703;<init>(Lnet/minecraft/class_2703$class_5893;Ljava/util/Collection;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/PlayerListS2CPacket;<init>(Lnet/minecraft/network/packet/s2c/play/PlayerListS2CPacket$Action;Ljava/util/Collection;)V
    • PlayerListS2CPacket

      public PlayerListS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lro;<init>(Log;)V
      intermediary <init> Lnet/minecraft/class_2703;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/PlayerListS2CPacket;<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 Lpk;a(Log;)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 Lro;a(Lpn;)V
      intermediary method_11721 Lnet/minecraft/class_2703;method_11721(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/PlayerListS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • getEntries

      public List<PlayerListS2CPacket.Entry> getEntries()
      Mappings:
      Namespace Name Mixin selector
      official b Lro;b()Ljava/util/List;
      intermediary method_11722 Lnet/minecraft/class_2703;method_11722()Ljava/util/List;
      named getEntries Lnet/minecraft/network/packet/s2c/play/PlayerListS2CPacket;getEntries()Ljava/util/List;
    • getAction

      public PlayerListS2CPacket.Action getAction()
      Mappings:
      Namespace Name Mixin selector
      official c Lro;c()Lro$a;
      intermediary method_11723 Lnet/minecraft/class_2703;method_11723()Lnet/minecraft/class_2703$class_5893;
      named getAction Lnet/minecraft/network/packet/s2c/play/PlayerListS2CPacket;getAction()Lnet/minecraft/network/packet/s2c/play/PlayerListS2CPacket$Action;
    • readOptionalText

      @Nullable static @Nullable Text readOptionalText(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official b Lro;b(Log;)Los;
      intermediary method_34149 Lnet/minecraft/class_2703;method_34149(Lnet/minecraft/class_2540;)Lnet/minecraft/class_2561;
      named readOptionalText Lnet/minecraft/network/packet/s2c/play/PlayerListS2CPacket;readOptionalText(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/text/Text;
    • writeOptionalText

      static void writeOptionalText(PacketByteBuf buf, @Nullable @Nullable Text text)
      Mappings:
      Namespace Name Mixin selector
      official a Lro;a(Log;Los;)V
      intermediary method_34148 Lnet/minecraft/class_2703;method_34148(Lnet/minecraft/class_2540;Lnet/minecraft/class_2561;)V
      named writeOptionalText Lnet/minecraft/network/packet/s2c/play/PlayerListS2CPacket;writeOptionalText(Lnet/minecraft/network/PacketByteBuf;Lnet/minecraft/text/Text;)V
    • toString

      public String toString()
      Overrides:
      toString in class Object