public class UpdateTrainerPartyPacketPacket extends UpdateEditedPartyPacket
party
Constructor and Description |
---|
UpdateTrainerPartyPacketPacket()
Empty constructor for packet registration.
|
UpdateTrainerPartyPacketPacket(java.util.List<Pokemon> party)
Initializes a packet.
|
Modifier and Type | Method and Description |
---|---|
protected UpdateEditedPokemonPacket |
createPokemonPacket(Pokemon data)
Creates a packet for an individual Pokémon.
|
protected void |
handlePacket(net.minecraftforge.fml.network.NetworkEvent.Context context) |
protected UpdateEditedPokemonPacket |
readPokemonData(net.minecraft.network.PacketBuffer buf)
Reads a single Pokémon from a buffer.
|
decode, encode
handle, reply
public UpdateTrainerPartyPacketPacket()
public UpdateTrainerPartyPacketPacket(java.util.List<Pokemon> party)
party
- The NPC Trainer's party Pokémon.protected UpdateEditedPokemonPacket createPokemonPacket(Pokemon data)
UpdateEditedPartyPacket
createPokemonPacket
in class UpdateEditedPartyPacket
data
- The Pokémon data to create a packet with.protected UpdateEditedPokemonPacket readPokemonData(net.minecraft.network.PacketBuffer buf)
UpdateEditedPartyPacket
readPokemonData
in class UpdateEditedPartyPacket
buf
- The buffer to read Pokémon data from.protected void handlePacket(net.minecraftforge.fml.network.NetworkEvent.Context context)
handlePacket
in class AbstractPixelmonPacket