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>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PlayerListS2CPacket.Action
class
PlayerListS2CPacket.Entry
-
Field Summary
Fields Modifier and Type Field Description private PlayerListS2CPacket.Action
action
private List<PlayerListS2CPacket.Entry>
entries
-
Constructor Summary
Constructors Constructor Description PlayerListS2CPacket()
PlayerListS2CPacket(PlayerListS2CPacket.Action action, Iterable<ServerPlayerEntity> iterable)
PlayerListS2CPacket(PlayerListS2CPacket.Action action, ServerPlayerEntity[] players)
-
Method Summary
Modifier and Type Method Description void
apply(ClientPlayPacketListener clientPlayPacketListener)
PlayerListS2CPacket.Action
getAction()
List<PlayerListS2CPacket.Entry>
getEntries()
void
read(PacketByteBuf buf)
String
toString()
void
write(PacketByteBuf buf)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
action
-
entries
-
-
Constructor Details
-
PlayerListS2CPacket
public PlayerListS2CPacket() -
PlayerListS2CPacket
-
PlayerListS2CPacket
public PlayerListS2CPacket(PlayerListS2CPacket.Action action, Iterable<ServerPlayerEntity> iterable)
-
-
Method Details
-
read
- Specified by:
read
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
-
getEntries
-
getAction
-
toString
-