public class BattleMessagePacket extends BattleTaskPacket
| Constructor and Description |
|---|
BattleMessagePacket()
Empty constructor for packet registration.
|
BattleMessagePacket(net.minecraft.util.text.ITextComponent component) |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(net.minecraft.network.PacketBuffer packetBuffer)
Decodes the information from the buffer to the packet instance
|
void |
encode(net.minecraft.network.PacketBuffer packetBuffer)
Encodes the buffer with the packet information
|
net.minecraft.util.text.ITextComponent |
getMessage() |
java.util.UUID |
getPokemonID()
Gets the UUID of the
Pokemon this message affects |
boolean |
isRead() |
void |
markAsRead() |
boolean |
process(ClientBattleManager bm)
Will be called once per frame until you return false.
|
handlePacket, shouldRunParallelhandle, replypublic BattleMessagePacket()
public BattleMessagePacket(net.minecraft.util.text.ITextComponent component)
public boolean process(ClientBattleManager bm)
BattleTaskPacketprocess in class BattleTaskPacketpublic boolean isRead()
public void markAsRead()
public net.minecraft.util.text.ITextComponent getMessage()
@Nullable public java.util.UUID getPokemonID()
BattleTaskPacketPokemon this message affectsgetPokemonID in class BattleTaskPacketpublic void decode(net.minecraft.network.PacketBuffer packetBuffer)
PixelmonPacketdecode in interface PixelmonPacketdecode in class AbstractPixelmonPacketpacketBuffer - The buffer being decodedpublic void encode(net.minecraft.network.PacketBuffer packetBuffer)
PixelmonPacketencode in interface PixelmonPacketencode in class AbstractPixelmonPacketpacketBuffer - The buffer being encoded