public class PlayerListS2CPacket extends Object implements Packet<ClientPlayPacketListener>
| Modifier and Type | Class and Description |
|---|---|
static class |
PlayerListS2CPacket.Action |
class |
PlayerListS2CPacket.Entry |
| Modifier and Type | Field and Description |
|---|---|
private PlayerListS2CPacket.Action |
action |
private List<PlayerListS2CPacket.Entry> |
entries |
| Constructor and Description |
|---|
PlayerListS2CPacket() |
PlayerListS2CPacket(PlayerListS2CPacket.Action action,
Iterable<ServerPlayerEntity> iterable) |
PlayerListS2CPacket(PlayerListS2CPacket.Action action,
ServerPlayerEntity[] players) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
PlayerListS2CPacket.Action |
getAction() |
List<PlayerListS2CPacket.Entry> |
getEntries() |
void |
read(PacketByteBuf buf) |
String |
toString() |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisWritingErrorSkippableprivate PlayerListS2CPacket.Action action
private final List<PlayerListS2CPacket.Entry> entries
public PlayerListS2CPacket()
public PlayerListS2CPacket(PlayerListS2CPacket.Action action, ServerPlayerEntity[] players)
public PlayerListS2CPacket(PlayerListS2CPacket.Action action, Iterable<ServerPlayerEntity> iterable)
public void read(PacketByteBuf buf) throws IOException
read in interface Packet<ClientPlayPacketListener>IOExceptionpublic void write(PacketByteBuf buf) throws IOException
write in interface Packet<ClientPlayPacketListener>IOExceptionpublic void apply(ClientPlayPacketListener clientPlayPacketListener)
apply in interface Packet<ClientPlayPacketListener>@Environment(value=CLIENT) public List<PlayerListS2CPacket.Entry> getEntries()
@Environment(value=CLIENT) public PlayerListS2CPacket.Action getAction()