Class CheckRulesVersionFixed
java.lang.Object
com.pixelmonmod.pixelmon.comm.data.AbstractPixelmonPacket
com.pixelmonmod.pixelmon.comm.packetHandlers.battles.rules.CheckRulesVersion<ShowTeamSelectPacket>
com.pixelmonmod.pixelmon.comm.packetHandlers.battles.rules.CheckRulesVersionFixed
- All Implemented Interfaces:
PixelmonPacket
Checks if the client's custom rules are synced with the server's before displaying the fixed rule screen.
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.comm.packetHandlers.battles.rules.CheckRulesVersion
packet
-
Constructor Summary
ConstructorDescriptionEmpty constructor for packet registration.Initializes a rules checking packet. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
handlePacket
(net.minecraftforge.event.network.CustomPayloadEvent.Context context) void
processPacket
(net.minecraftforge.event.network.CustomPayloadEvent.Context context) Acts upon the inner packet when rules have been synced.protected void
readPacket
(net.minecraft.network.FriendlyByteBuf buf) Reads back the contained packet from buffer data.Methods inherited from class com.pixelmonmod.pixelmon.comm.packetHandlers.battles.rules.CheckRulesVersion
decode, encode, onMessage
Methods inherited from class com.pixelmonmod.pixelmon.comm.data.AbstractPixelmonPacket
handle, reply
-
Constructor Details
-
CheckRulesVersionFixed
public CheckRulesVersionFixed()Empty constructor for packet registration. -
CheckRulesVersionFixed
Initializes a rules checking packet.- Parameters:
packet
- The packet that will be processed once rules are synced.
-
-
Method Details
-
readPacket
protected void readPacket(net.minecraft.network.FriendlyByteBuf buf) Description copied from class:CheckRulesVersion
Reads back the contained packet from buffer data.- Specified by:
readPacket
in classCheckRulesVersion<ShowTeamSelectPacket>
- Parameters:
buf
- The buffer to read data from.
-
processPacket
public void processPacket(net.minecraftforge.event.network.CustomPayloadEvent.Context context) Description copied from class:CheckRulesVersion
Acts upon the inner packet when rules have been synced.- Specified by:
processPacket
in classCheckRulesVersion<ShowTeamSelectPacket>
- Parameters:
context
- The context that the packet was sent from.
-
handlePacket
protected void handlePacket(net.minecraftforge.event.network.CustomPayloadEvent.Context context) - Specified by:
handlePacket
in classAbstractPixelmonPacket
-