Package com.pixelmonmod.tcg.duel.state
Class PlayerServerState
java.lang.Object
com.pixelmonmod.tcg.duel.state.PlayerCommonState
com.pixelmonmod.tcg.duel.state.PlayerServerState
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPendingPrizeCount
(int playerIndex, int pendingPrizeCount) int
drawCards
(int count, GameServerState server) getDeck()
net.minecraft.world.entity.player.Player
getHand()
int
boolean
hasDeck()
boolean
hasItem
(net.minecraft.world.item.Item item) boolean
void
void
setCardBack
(String id) void
setCardSelectorResult
(CardSelectorResult cardSelectorResult) void
setCardSelectorState
(CardSelectorState cardSelectorState) void
setCoinSet
(String id) void
setCounterEndTime
(Date counterEndTime) void
setCustomGUI
(CustomGUI customGUI) void
setCustomGUIResult
(CustomGUIResult customGUIResult) void
setDeck
(List<ImmutableCard> deck) void
setEntityPlayer
(net.minecraft.world.entity.player.Player entityPlayer) void
setOpeningPrizeIndex
(int openingPrizeIndex) void
setPendingPrizeCount
(int playerIndex, int pendingCount) void
switchActive
(PokemonCardState benchCard, GameServerState server) void
Methods inherited from class com.pixelmonmod.tcg.duel.state.PlayerCommonState
areTrainersDisabled, getActiveAndBenchCards, getActiveAndBenchCards, getActiveCard, getBenchCards, getCard, getCardBackID, getCoin, getCoinSetID, getCounterEndTime, getDiscardPile, getPendingPrizeCount, getPendingPrizePlayerIndex, getPlayerName, getPrizeCards, getTrainerCard, hasPrizeLeft, isChoosingOppAttack, isInBench, isInGUI, isReady, setActiveCard, setAreTrainersDisabled, setBenchCards, setChoosingOppAttack, setGraveyard, setInGUI, setPrizeCards, setReady, setTrainerCard, write
-
Field Details
-
entityPlayer
protected net.minecraft.world.entity.player.Player entityPlayer
-
-
Constructor Details
-
PlayerServerState
public PlayerServerState(net.minecraft.world.entity.player.Player entityPlayer)
-
-
Method Details
-
drawCards
-
getDeck
-
getHand
- Overrides:
getHand
in classPlayerCommonState
-
setDeck
-
setCardBack
-
setCoinSet
-
getAvailableActions
-
getCardSelectorState
-
setCardSelectorState
-
getCardSelectorResult
-
setCardSelectorResult
-
getEntityPlayer
public net.minecraft.world.entity.player.Player getEntityPlayer() -
setEntityPlayer
public void setEntityPlayer(net.minecraft.world.entity.player.Player entityPlayer) -
setCounterEndTime
-
hasPokemonLeft
public boolean hasPokemonLeft() -
hasDeck
public boolean hasDeck() -
prepareDeck
public void prepareDeck() -
switchActive
-
getCustomGUI
-
setCustomGUI
-
getCustomGUIResult
-
useCustomGUIDefaultResult
public void useCustomGUIDefaultResult() -
setCustomGUIResult
-
setPendingPrizeCount
public void setPendingPrizeCount(int playerIndex, int pendingCount) -
addPendingPrizeCount
public void addPendingPrizeCount(int playerIndex, int pendingPrizeCount) -
getOpeningPrizeIndex
public int getOpeningPrizeIndex() -
setOpeningPrizeIndex
public void setOpeningPrizeIndex(int openingPrizeIndex) -
hasItem
public boolean hasItem(net.minecraft.world.item.Item item)
-