public class SPlayerListItemPacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
Modifier and Type | Class and Description |
---|---|
static class |
SPlayerListItemPacket.Action |
class |
SPlayerListItemPacket.AddPlayerData |
Modifier and Type | Field and Description |
---|---|
private SPlayerListItemPacket.Action |
action |
private java.util.List<SPlayerListItemPacket.AddPlayerData> |
players |
Constructor and Description |
---|
SPlayerListItemPacket() |
SPlayerListItemPacket(SPlayerListItemPacket.Action actionIn,
java.lang.Iterable<ServerPlayerEntity> playersIn) |
SPlayerListItemPacket(SPlayerListItemPacket.Action actionIn,
ServerPlayerEntity... playersIn) |
Modifier and Type | Method and Description |
---|---|
SPlayerListItemPacket.Action |
getAction() |
java.util.List<SPlayerListItemPacket.AddPlayerData> |
getEntries() |
void |
processPacket(IClientPlayNetHandler handler) |
void |
readPacketData(PacketBuffer buf) |
java.lang.String |
toString() |
void |
writePacketData(PacketBuffer buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
shouldSkipErrors
private SPlayerListItemPacket.Action action
private final java.util.List<SPlayerListItemPacket.AddPlayerData> players
public SPlayerListItemPacket()
public SPlayerListItemPacket(SPlayerListItemPacket.Action actionIn, ServerPlayerEntity... playersIn)
public SPlayerListItemPacket(SPlayerListItemPacket.Action actionIn, java.lang.Iterable<ServerPlayerEntity> playersIn)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface IPacket<IClientPlayNetHandler>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface IPacket<IClientPlayNetHandler>
java.io.IOException
public void processPacket(IClientPlayNetHandler handler)
processPacket
in interface IPacket<IClientPlayNetHandler>
public java.util.List<SPlayerListItemPacket.AddPlayerData> getEntries()
public SPlayerListItemPacket.Action getAction()
public java.lang.String toString()
toString
in class java.lang.Object