Class UpdateTrainerPartyPacketPacket
java.lang.Object
com.pixelmonmod.pixelmon.comm.data.AbstractPixelmonPacket
com.pixelmonmod.pixelmon.comm.packetHandlers.pokemoneditor.UpdateEditedPartyPacket
com.pixelmonmod.pixelmon.comm.packetHandlers.npc.UpdateTrainerPartyPacketPacket
- All Implemented Interfaces:
PixelmonPacket
Updates an NPC Trainer's party server-side.
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.comm.packetHandlers.pokemoneditor.UpdateEditedPartyPacket
party
-
Constructor Summary
ConstructorDescriptionEmpty constructor for packet registration.Initializes a packet. -
Method Summary
Modifier and TypeMethodDescriptionprotected UpdateEditedPokemonPacket
createPokemonPacket
(Pokemon data) Creates a packet for an individual Pokémon.protected void
handlePacket
(net.minecraftforge.event.network.CustomPayloadEvent.Context context) protected UpdateEditedPokemonPacket
readPokemonData
(net.minecraft.network.FriendlyByteBuf buf) Reads a single Pokémon from a buffer.Methods inherited from class com.pixelmonmod.pixelmon.comm.packetHandlers.pokemoneditor.UpdateEditedPartyPacket
decode, encode
Methods inherited from class com.pixelmonmod.pixelmon.comm.data.AbstractPixelmonPacket
handle, reply
-
Constructor Details
-
UpdateTrainerPartyPacketPacket
public UpdateTrainerPartyPacketPacket()Empty constructor for packet registration. -
UpdateTrainerPartyPacketPacket
Initializes a packet.- Parameters:
party
- The NPC Trainer's party Pokémon.
-
-
Method Details
-
createPokemonPacket
Description copied from class:UpdateEditedPartyPacket
Creates a packet for an individual Pokémon.- Specified by:
createPokemonPacket
in classUpdateEditedPartyPacket
- Parameters:
data
- The Pokémon data to create a packet with.- Returns:
- A packet for an individual Pokémon.
-
readPokemonData
Description copied from class:UpdateEditedPartyPacket
Reads a single Pokémon from a buffer.- Specified by:
readPokemonData
in classUpdateEditedPartyPacket
- Parameters:
buf
- The buffer to read Pokémon data from.- Returns:
- The decoded data.
-
handlePacket
protected void handlePacket(net.minecraftforge.event.network.CustomPayloadEvent.Context context) - Specified by:
handlePacket
in classAbstractPixelmonPacket
-