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, shouldRunParallel
handle, reply
public BattleMessagePacket()
public BattleMessagePacket(net.minecraft.util.text.ITextComponent component)
public boolean process(ClientBattleManager bm)
BattleTaskPacket
process
in class BattleTaskPacket
public boolean isRead()
public void markAsRead()
public net.minecraft.util.text.ITextComponent getMessage()
@Nullable public java.util.UUID getPokemonID()
BattleTaskPacket
Pokemon
this message affectsgetPokemonID
in class BattleTaskPacket
public void decode(net.minecraft.network.PacketBuffer packetBuffer)
PixelmonPacket
decode
in interface PixelmonPacket
decode
in class AbstractPixelmonPacket
packetBuffer
- The buffer being decodedpublic void encode(net.minecraft.network.PacketBuffer packetBuffer)
PixelmonPacket
encode
in interface PixelmonPacket
encode
in class AbstractPixelmonPacket
packetBuffer
- The buffer being encoded