Package com.pixelmonmod.tcg.duel.state
Class PlayerClientOpponentState
java.lang.Object
com.pixelmonmod.tcg.duel.state.PlayerCommonState
com.pixelmonmod.tcg.duel.state.PlayerClientOpponentState
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.
-
Field Summary
Fields inherited from class com.pixelmonmod.tcg.duel.state.PlayerCommonState
activeCard, benchCards, cardBackID, coinSetID, counterEndTime, graveyard, isChoosingOppAttack, isInGUI, isReady, isSpectating, pendingPrizeCount, pendingPrizePlayerIndex, playerName, prizeCards, showPokemonsInClient, timeLeft, trainerCard, trainersDisabled
-
Constructor Summary
ConstructorDescriptionPlayerClientOpponentState
(PlayerServerState player, GamePhase gamePhase, GameServerState server, boolean isOwnData) PlayerClientOpponentState
(net.minecraft.network.FriendlyByteBuf buf, GameServerState server) -
Method Summary
Modifier and TypeMethodDescriptionint
void
setDeckSize
(int deckSize) void
write
(net.minecraft.network.FriendlyByteBuf buf) Methods inherited from class com.pixelmonmod.tcg.duel.state.PlayerCommonState
areTrainersDisabled, getActiveAndBenchCards, getActiveAndBenchCards, getActiveCard, getBenchCards, getCard, getCardBackID, getCoin, getCoinSetID, getCounterEndTime, getDiscardPile, getHand, getPendingPrizeCount, getPendingPrizePlayerIndex, getPlayerName, getPrizeCards, getTrainerCard, hasPrizeLeft, isChoosingOppAttack, isInBench, isInGUI, isReady, setActiveCard, setAreTrainersDisabled, setBenchCards, setChoosingOppAttack, setGraveyard, setInGUI, setPrizeCards, setReady, setTrainerCard
-
Constructor Details
-
PlayerClientOpponentState
public PlayerClientOpponentState(PlayerServerState player, GamePhase gamePhase, GameServerState server, boolean isOwnData) -
PlayerClientOpponentState
-
-
Method Details
-
write
public void write(net.minecraft.network.FriendlyByteBuf buf) - Overrides:
write
in classPlayerCommonState
-
getDeckSize
public int getDeckSize() -
setDeckSize
public void setDeckSize(int deckSize)
-