Package com.pixelmonmod.tcg.duel.state
Class PlayerCommonState
java.lang.Object
com.pixelmonmod.tcg.duel.state.PlayerCommonState
- Direct Known Subclasses:
PlayerClientMyState,PlayerClientOpponentState,PlayerServerState
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PokemonCardStateprotected PokemonCardState[]protected net.minecraft.core.Holder<CardBack> protected net.minecraft.core.Holder<Coin> protected Dateprotected List<CommonCardState> protected List<CommonCardState> protected booleanprotected booleanprotected booleanprotected booleanprotected intprotected intprotected Stringprotected CommonCardState[]protected booleanprotected Integerprotected TrainerCardStateprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionPlayerCommonState(PlayerServerState player, GameServerState server, boolean isMe) PlayerCommonState(net.minecraft.network.FriendlyByteBuf buf, GameServerState server, boolean isMe) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCardToDiscardPile(CommonCardState cardState) voidaddCardToHand(CommonCardState card) booleangetActiveAndBenchCards(boolean isMine) getBenchCard(int index) getCard(BoardLocation location, int locationSubindex) net.minecraft.core.Holder<CardBack> net.minecraft.core.Holder<Coin> getCoin()getHand()intintbooleanbooleanbooleanisInBench(CommonCardState card) booleanisInGUI()booleanisReady()voidsetActiveCard(PokemonCardState activeCard) voidsetAreTrainersDisabled(boolean y) voidsetBenchCards(PokemonCardState[] benchCards) voidsetChoosingOppAttack(boolean choosingOppAttack) voidsetInGUI(boolean inGUI) voidsetPrizeCards(CommonCardState[] prizeCards) voidsetReady(boolean ready) voidsetTrainerCard(TrainerCardState trainerCard) voidwrite(net.minecraft.network.FriendlyByteBuf buf)
-
Field Details
-
isReady
protected boolean isReady -
trainerCard
-
activeCard
-
benchCards
-
discardPile
-
prizeCards
-
hand
-
showPokemonsInClient
protected boolean showPokemonsInClient -
cardBack
-
coin
-
isChoosingOppAttack
protected boolean isChoosingOppAttack -
pendingPrizeCount
protected int pendingPrizeCount -
pendingPrizePlayerIndex
protected int pendingPrizePlayerIndex -
isInGUI
protected boolean isInGUI -
isSpectating
protected boolean isSpectating -
trainersDisabled
protected boolean trainersDisabled -
playerName
-
timeLeft
-
counterEndTime
-
-
Constructor Details
-
PlayerCommonState
public PlayerCommonState() -
PlayerCommonState
-
PlayerCommonState
public PlayerCommonState(net.minecraft.network.FriendlyByteBuf buf, GameServerState server, boolean isMe)
-
-
Method Details
-
write
public void write(net.minecraft.network.FriendlyByteBuf buf) -
getHand
-
addCardToHand
-
getPlayerName
-
isReady
public boolean isReady() -
setReady
public void setReady(boolean ready) -
getTrainerCard
-
getActiveAndBenchCards
-
getActiveAndBenchCards
-
getActiveCard
-
getBenchCards
-
getBenchCard
-
setTrainerCard
-
setActiveCard
-
setBenchCards
-
getDiscardPile
-
addCardToDiscardPile
-
getPrizeCards
-
setPrizeCards
-
hasPrizeLeft
public boolean hasPrizeLeft() -
isInBench
-
isChoosingOppAttack
public boolean isChoosingOppAttack() -
setChoosingOppAttack
public void setChoosingOppAttack(boolean choosingOppAttack) -
getCardBack
-
getCoin
-
areTrainersDisabled
public boolean areTrainersDisabled() -
setAreTrainersDisabled
public void setAreTrainersDisabled(boolean y) -
getCard
-
getPendingPrizePlayerIndex
public int getPendingPrizePlayerIndex() -
getPendingPrizeCount
public int getPendingPrizeCount() -
isInGUI
public boolean isInGUI() -
setInGUI
public void setInGUI(boolean inGUI) -
getCounterEndTime
-