Class SyncThemeDecksPacket

java.lang.Object
com.pixelmonmod.tcg.network.data.AbstractTCGPacket
com.pixelmonmod.tcg.network.sync.SyncThemeDecksPacket
All Implemented Interfaces:
TCGPacket

public class SyncThemeDecksPacket extends AbstractTCGPacket
  • Constructor Details

    • SyncThemeDecksPacket

      public SyncThemeDecksPacket()
    • SyncThemeDecksPacket

      public SyncThemeDecksPacket(List<ThemeDeck> themeDecks, boolean last)
  • Method Details

    • sync

      public static void sync(net.minecraft.server.level.ServerPlayer player)
    • 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
    • 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
    • handlePacket

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