public class ChooseAttackPacket extends AbstractPixelmonPacket
| Modifier and Type | Field and Description |
|---|---|
boolean |
dynamaxing
Whether the player has chosen to Dynamax the current Pokémon.
|
boolean |
megaEvolving
Whether the player has chosen to Mega Evolve the current Pokémon.
|
java.util.UUID |
pokemonUUID
The UUID of the Pokémon with the attack.
|
| Constructor and Description |
|---|
ChooseAttackPacket()
Initializes an empty packet.
|
ChooseAttackPacket(java.util.UUID pokemonUUID,
boolean[][] targetting,
int buttonId,
int battleIndex,
boolean megaEvolving,
boolean dynamaxing)
Initializes a packet.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decode(net.minecraft.network.PacketBuffer buffer)
Decodes the information from the buffer to the packet instance
|
void |
encode(net.minecraft.network.PacketBuffer buffer)
Encodes the buffer with the packet information
|
protected void |
handlePacket(net.minecraftforge.fml.network.NetworkEvent.Context context) |
handle, replypublic java.util.UUID pokemonUUID
public boolean megaEvolving
public boolean dynamaxing
public ChooseAttackPacket()
public ChooseAttackPacket(java.util.UUID pokemonUUID,
boolean[][] targetting,
int buttonId,
int battleIndex,
boolean megaEvolving,
boolean dynamaxing)
pokemonUUID - The UUID of the Pokémon with the attack.targetting - Targeting information for the attack.buttonId - The index of the Pokémon's attack.battleIndex - The battle the attack was chosen in.megaEvolving - Whether the player has chosen to Mega Evolve the current
Pokémon.dynamaxing - Whether the player has chosen to Dynamax the current
Pokémon.public void decode(net.minecraft.network.PacketBuffer buffer)
PixelmonPacketdecode in interface PixelmonPacketdecode in class AbstractPixelmonPacketbuffer - The buffer being decodedpublic void encode(net.minecraft.network.PacketBuffer buffer)
PixelmonPacketencode in interface PixelmonPacketencode in class AbstractPixelmonPacketbuffer - The buffer being encodedprotected void handlePacket(net.minecraftforge.fml.network.NetworkEvent.Context context)
handlePacket in class AbstractPixelmonPacket