public class SPacketPlayerListItem extends java.lang.Object implements Packet<INetHandlerPlayClient>
Modifier and Type | Class and Description |
---|---|
static class |
SPacketPlayerListItem.Action |
class |
SPacketPlayerListItem.AddPlayerData |
Modifier and Type | Field and Description |
---|---|
private SPacketPlayerListItem.Action |
action |
private java.util.List<SPacketPlayerListItem.AddPlayerData> |
players |
Constructor and Description |
---|
SPacketPlayerListItem() |
SPacketPlayerListItem(SPacketPlayerListItem.Action actionIn,
EntityPlayerMP... playersIn) |
SPacketPlayerListItem(SPacketPlayerListItem.Action actionIn,
java.lang.Iterable<EntityPlayerMP> playersIn) |
Modifier and Type | Method and Description |
---|---|
SPacketPlayerListItem.Action |
getAction() |
java.util.List<SPacketPlayerListItem.AddPlayerData> |
getEntries() |
void |
processPacket(INetHandlerPlayClient handler) |
void |
readPacketData(PacketBuffer buf) |
java.lang.String |
toString() |
void |
writePacketData(PacketBuffer buf) |
private SPacketPlayerListItem.Action action
private final java.util.List<SPacketPlayerListItem.AddPlayerData> players
public SPacketPlayerListItem()
public SPacketPlayerListItem(SPacketPlayerListItem.Action actionIn, EntityPlayerMP... playersIn)
public SPacketPlayerListItem(SPacketPlayerListItem.Action actionIn, java.lang.Iterable<EntityPlayerMP> playersIn)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public void processPacket(INetHandlerPlayClient handler)
processPacket
in interface Packet<INetHandlerPlayClient>
public java.util.List<SPacketPlayerListItem.AddPlayerData> getEntries()
public SPacketPlayerListItem.Action getAction()
public java.lang.String toString()
toString
in class java.lang.Object