public class CheckRulesVersionChoosePacket extends CheckRulesVersion<DisplayBattleQueryRulesPacket>
packet
Constructor and Description |
---|
CheckRulesVersionChoosePacket()
Empty constructor for packet registration.
|
CheckRulesVersionChoosePacket(DisplayBattleQueryRulesPacket packet)
Initializes a rules checking packet.
|
Modifier and Type | Method and Description |
---|---|
protected void |
handlePacket(net.minecraftforge.fml.network.NetworkEvent.Context context) |
void |
processPacket(net.minecraftforge.fml.network.NetworkEvent.Context context)
Acts upon the inner packet when rules have been synced.
|
protected void |
readPacket(net.minecraft.network.PacketBuffer buf)
Reads back the contained packet from buffer data.
|
decode, encode, onMessage
handle, reply
public CheckRulesVersionChoosePacket()
public CheckRulesVersionChoosePacket(DisplayBattleQueryRulesPacket packet)
packet
- The packet that will be processed once rules are synced.protected void readPacket(net.minecraft.network.PacketBuffer buf)
CheckRulesVersion
readPacket
in class CheckRulesVersion<DisplayBattleQueryRulesPacket>
buf
- The buffer to read data from.public void processPacket(net.minecraftforge.fml.network.NetworkEvent.Context context)
CheckRulesVersion
processPacket
in class CheckRulesVersion<DisplayBattleQueryRulesPacket>
context
- The context that the packet was sent from.protected void handlePacket(net.minecraftforge.fml.network.NetworkEvent.Context context)
handlePacket
in class AbstractPixelmonPacket