Class PlayerClientOpponentState

java.lang.Object
com.pixelmonmod.tcg.duel.state.PlayerCommonState
com.pixelmonmod.tcg.duel.state.PlayerClientOpponentState

public class PlayerClientOpponentState extends PlayerCommonState
Created by Hy on 5/10/2016. For GameSync packet, this class is used to contain only opponent's data. For RenderSync packet, this class is used for both opponent's and own data.
  • Constructor Details

    • PlayerClientOpponentState

      public PlayerClientOpponentState(PlayerServerState player, GamePhase gamePhase, GameServerState server, boolean isOwnData)
    • PlayerClientOpponentState

      public PlayerClientOpponentState(net.minecraft.network.FriendlyByteBuf buf, GameServerState server)
  • Method Details

    • write

      public void write(net.minecraft.network.FriendlyByteBuf buf)
      Overrides:
      write in class PlayerCommonState
    • getDeckSize

      public int getDeckSize()
    • setDeckSize

      public void setDeckSize(int deckSize)