public class HPIncreaseTask extends BattleTaskPacket
Constructor and Description |
---|
HPIncreaseTask()
Empty constructor for packet registration.
|
HPIncreaseTask(java.util.UUID pokemonUUID,
int level,
int currentHP,
int maxHP)
Initializes a packet.
|
Modifier and Type | Method and Description |
---|---|
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
|
java.util.UUID |
getPokemonID()
Gets the UUID of the
Pokemon this message affects |
boolean |
process(ClientBattleManager bm)
Will be called once per frame until you return false.
|
handlePacket, shouldRunParallel
handle, reply
public HPIncreaseTask()
public HPIncreaseTask(java.util.UUID pokemonUUID, int level, int currentHP, int maxHP)
pokemonUUID
- The UUID of the Pokémon who leveled up.level
- The pokemonLevel of the Pokémon who leveled up.currentHP
- The current of the Pokémon who leveled up.maxHP
- The maximum hp of the Pokémon who leveled up.public boolean process(ClientBattleManager bm)
BattleTaskPacket
process
in class BattleTaskPacket
@Nullable public java.util.UUID getPokemonID()
BattleTaskPacket
Pokemon
this message affectsgetPokemonID
in class BattleTaskPacket
public void decode(net.minecraft.network.PacketBuffer buf)
PixelmonPacket
decode
in interface PixelmonPacket
decode
in class AbstractPixelmonPacket
buf
- The buffer being decodedpublic void encode(net.minecraft.network.PacketBuffer buf)
PixelmonPacket
encode
in interface PixelmonPacket
encode
in class AbstractPixelmonPacket
buf
- The buffer being encoded