public abstract class UpdateEditedPartyPacket extends AbstractPixelmonPacket
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<UpdateEditedPokemonPacket> |
party
The player's party Pokémon.
|
| Modifier | Constructor and Description |
|---|---|
protected |
UpdateEditedPartyPacket()
Empty constructor for packet registration.
|
protected |
UpdateEditedPartyPacket(java.util.List<Pokemon> party)
Initializes a packet.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract UpdateEditedPokemonPacket |
createPokemonPacket(Pokemon data)
Creates a packet for an individual Pokémon.
|
void |
decode(net.minecraft.network.PacketBuffer buf)
Decodes the information from the buffer to the packet instance
|
void |
encode(net.minecraft.network.PacketBuffer buf)
Encodes the buffer with the packet information
|
protected abstract UpdateEditedPokemonPacket |
readPokemonData(net.minecraft.network.PacketBuffer buf)
Reads a single Pokémon from a buffer.
|
handle, handlePacket, replyprotected java.util.List<UpdateEditedPokemonPacket> party
protected UpdateEditedPartyPacket()
protected UpdateEditedPartyPacket(java.util.List<Pokemon> party)
party - The party Pokémon.protected abstract UpdateEditedPokemonPacket createPokemonPacket(Pokemon data)
data - The Pokémon data to create a packet with.public void encode(net.minecraft.network.PacketBuffer buf)
PixelmonPacketencode in interface PixelmonPacketencode in class AbstractPixelmonPacketbuf - The buffer being encodedpublic void decode(net.minecraft.network.PacketBuffer buf)
PixelmonPacketdecode in interface PixelmonPacketdecode in class AbstractPixelmonPacketbuf - The buffer being decodedprotected abstract UpdateEditedPokemonPacket readPokemonData(net.minecraft.network.PacketBuffer buf)
buf - The buffer to read Pokémon data from.