public class RaidShieldsTask extends BattleTaskPacket
| Modifier and Type | Field and Description |
|---|---|
int |
maxShields
The max shields of the Raid Pokémon.
|
java.util.UUID |
pokemonUUID
The Pokémon being affected by the message.
|
int |
shields
The shields of the Raid Pokémon.
|
| Constructor and Description |
|---|
RaidShieldsTask()
Empty constructor for packet registration.
|
RaidShieldsTask(java.util.UUID pokemonUUID,
int shields,
int maxShields)
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, shouldRunParallelhandle, replypublic java.util.UUID pokemonUUID
public int shields
public int maxShields
public RaidShieldsTask()
public RaidShieldsTask(java.util.UUID pokemonUUID,
int shields,
int maxShields)
pokemonUUID - The UUID of the Pokémon who leveled up.shields - The shields of the Raid Pokémon.maxShields - The max shields of the Raid Pokémon.public boolean process(ClientBattleManager bm)
BattleTaskPacketprocess in class BattleTaskPacket@Nullable public java.util.UUID getPokemonID()
BattleTaskPacketPokemon this message affectsgetPokemonID in class BattleTaskPacketpublic void decode(net.minecraft.network.PacketBuffer buf)
PixelmonPacketdecode in interface PixelmonPacketdecode in class AbstractPixelmonPacketbuf - The buffer being decodedpublic void encode(net.minecraft.network.PacketBuffer buf)
PixelmonPacketencode in interface PixelmonPacketencode in class AbstractPixelmonPacketbuf - The buffer being encoded