Class GameStateSyncPacket

java.lang.Object
com.pixelmonmod.tcg.network.data.AbstractTCGPacket
com.pixelmonmod.tcg.network.packets.battles.GameStateSyncPacket
All Implemented Interfaces:
TCGPacket

public class GameStateSyncPacket extends AbstractTCGPacket
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    GameStateSyncPacket(net.minecraft.core.BlockPos blockPos, int playerIndex, boolean isSpectating, GameServerState server, net.minecraft.world.entity.player.Player entityPlayer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    decode(net.minecraft.network.FriendlyByteBuf buffer)
    Decodes the information from the buffer to the packet instance
    void
    encode(net.minecraft.network.FriendlyByteBuf buffer)
    Encodes the buffer with the packet information
    protected void
    handlePacket(net.minecraftforge.event.network.CustomPayloadEvent.Context context)
     

    Methods inherited from class com.pixelmonmod.tcg.network.data.AbstractTCGPacket

    handle, reply

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GameStateSyncPacket

      public GameStateSyncPacket()
    • GameStateSyncPacket

      public GameStateSyncPacket(net.minecraft.core.BlockPos blockPos, int playerIndex, boolean isSpectating, GameServerState server, net.minecraft.world.entity.player.Player entityPlayer)
  • Method Details

    • encode

      public void encode(net.minecraft.network.FriendlyByteBuf buffer)
      Description copied from interface: TCGPacket
      Encodes the buffer with the packet information
      Specified by:
      encode in interface TCGPacket
      Overrides:
      encode in class AbstractTCGPacket
      Parameters:
      buffer - The buffer being encoded
    • decode

      public void decode(net.minecraft.network.FriendlyByteBuf buffer)
      Description copied from interface: TCGPacket
      Decodes the information from the buffer to the packet instance
      Specified by:
      decode in interface TCGPacket
      Overrides:
      decode in class AbstractTCGPacket
      Parameters:
      buffer - The buffer being decoded
    • handlePacket

      protected void handlePacket(net.minecraftforge.event.network.CustomPayloadEvent.Context context)
      Specified by:
      handlePacket in class AbstractTCGPacket