Package com.pixelmonmod.tcg.duel.state
Class PlayerClientMyState
java.lang.Object
com.pixelmonmod.tcg.duel.state.PlayerCommonState
com.pixelmonmod.tcg.duel.state.PlayerClientMyState
Created by Hy on 5/10/2016.
-
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
ConstructorDescriptionPlayerClientMyState
(PlayerServerState player, GamePhase gamePhase, GameServerState server, boolean isSpectating) Create client data to send to clientPlayerClientMyState
(net.minecraft.network.FriendlyByteBuf buf, GameServerState server) -
Method Summary
Modifier and TypeMethodDescriptionint
int
void
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, getPendingPrizePlayerIndex, getPlayerName, getPrizeCards, getTrainerCard, hasPrizeLeft, isChoosingOppAttack, isInBench, isInGUI, isReady, setActiveCard, setAreTrainersDisabled, setBenchCards, setChoosingOppAttack, setGraveyard, setInGUI, setPrizeCards, setReady, setTrainerCard
-
Constructor Details
-
PlayerClientMyState
public PlayerClientMyState(PlayerServerState player, GamePhase gamePhase, GameServerState server, boolean isSpectating) Create client data to send to client- Parameters:
player
-gamePhase
-isSpectating
-
-
PlayerClientMyState
-
-
Method Details
-
write
public void write(net.minecraft.network.FriendlyByteBuf buf) - Overrides:
write
in classPlayerCommonState
-
getDeckSize
public int getDeckSize() -
getAvailableActions
-
getCardSelectorState
-
setCardSelectorState
-
getPendingPrizeCount
public int getPendingPrizeCount()- Overrides:
getPendingPrizeCount
in classPlayerCommonState
-
getCustomGUI
-