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
ConstructorsConstructorDescriptionEmpty constructor for packet registration.Initializes a rules checking packet. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhandlePacket(net.minecraftforge.event.network.CustomPayloadEvent.Context context) voidprocessPacket(net.minecraftforge.event.network.CustomPayloadEvent.Context context) Acts upon the inner packet when rules have been synced.protected voidreadPacket(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, onMessageMethods 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:CheckRulesVersionReads back the contained packet from buffer data.- Specified by:
readPacketin 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:CheckRulesVersionActs upon the inner packet when rules have been synced.- Specified by:
processPacketin 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:
handlePacketin classAbstractPixelmonPacket
-