Class CheckRulesVersionFixed

All Implemented Interfaces:
PixelmonPacket

public class CheckRulesVersionFixed extends CheckRulesVersion<ShowTeamSelectPacket>
Checks if the client's custom rules are synced with the server's before displaying the fixed rule screen.
  • Constructor Details

    • CheckRulesVersionFixed

      public CheckRulesVersionFixed()
      Empty constructor for packet registration.
    • CheckRulesVersionFixed

      public CheckRulesVersionFixed(ShowTeamSelectPacket packet)
      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 class CheckRulesVersion<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 class CheckRulesVersion<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 class AbstractPixelmonPacket