public class PlayerServerState extends PlayerCommonState
Modifier and Type | Field and Description |
---|---|
protected net.minecraft.entity.player.PlayerEntity |
entityPlayer |
activeCard, benchCards, cardBackID, coinSetID, counterEndTime, graveyard, isChoosingOppAttack, isInGUI, isReady, isSpectating, pendingPrizeCount, pendingPrizePlayerIndex, playerName, prizeCards, showPokemonsInClient, timeLeft, trainerCard, trainersDisabled
Constructor and Description |
---|
PlayerServerState(net.minecraft.entity.player.PlayerEntity entityPlayer) |
Modifier and Type | Method and Description |
---|---|
void |
addPendingPrizeCount(int playerIndex,
int pendingPrizeCount) |
int |
drawCards(int count,
GameServerState server) |
AvailableActions |
getAvailableActions() |
CardSelectorResult |
getCardSelectorResult() |
CardSelectorState |
getCardSelectorState() |
CustomGUI |
getCustomGUI() |
CustomGUIResult |
getCustomGUIResult() |
java.util.List<ImmutableCard> |
getDeck() |
net.minecraft.entity.player.PlayerEntity |
getEntityPlayer() |
java.util.List<ImmutableCard> |
getHand() |
int |
getOpeningPrizeIndex() |
boolean |
hasDeck() |
boolean |
hasItem(net.minecraft.item.Item item) |
boolean |
hasPokemonLeft() |
void |
prepareDeck() |
void |
setCardBack(java.lang.String id) |
void |
setCardSelectorResult(CardSelectorResult cardSelectorResult) |
void |
setCardSelectorState(CardSelectorState cardSelectorState) |
void |
setCoinSet(java.lang.String id) |
void |
setCounterEndTime(java.util.Date counterEndTime) |
void |
setCustomGUI(CustomGUI customGUI) |
void |
setCustomGUIResult(CustomGUIResult customGUIResult) |
void |
setDeck(java.util.List<ImmutableCard> deck) |
void |
setEntityPlayer(net.minecraft.entity.player.PlayerEntity entityPlayer) |
void |
setOpeningPrizeIndex(int openingPrizeIndex) |
void |
setPendingPrizeCount(int playerIndex,
int pendingCount) |
void |
switchActive(PokemonCardState benchCard,
GameServerState server) |
void |
useCustomGUIDefaultResult() |
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
public PlayerServerState(net.minecraft.entity.player.PlayerEntity entityPlayer)
public int drawCards(int count, GameServerState server)
public java.util.List<ImmutableCard> getDeck()
public java.util.List<ImmutableCard> getHand()
getHand
in class PlayerCommonState
public void setDeck(java.util.List<ImmutableCard> deck)
public void setCardBack(java.lang.String id)
public void setCoinSet(java.lang.String id)
public AvailableActions getAvailableActions()
public CardSelectorState getCardSelectorState()
public void setCardSelectorState(CardSelectorState cardSelectorState)
public CardSelectorResult getCardSelectorResult()
public void setCardSelectorResult(CardSelectorResult cardSelectorResult)
public net.minecraft.entity.player.PlayerEntity getEntityPlayer()
public void setEntityPlayer(net.minecraft.entity.player.PlayerEntity entityPlayer)
public void setCounterEndTime(java.util.Date counterEndTime)
public boolean hasPokemonLeft()
public boolean hasDeck()
public void prepareDeck()
public void switchActive(PokemonCardState benchCard, GameServerState server)
public CustomGUI getCustomGUI()
public void setCustomGUI(CustomGUI customGUI)
public CustomGUIResult getCustomGUIResult()
public void useCustomGUIDefaultResult()
public void setCustomGUIResult(CustomGUIResult customGUIResult)
public void setPendingPrizeCount(int playerIndex, int pendingCount)
public void addPendingPrizeCount(int playerIndex, int pendingPrizeCount)
public int getOpeningPrizeIndex()
public void setOpeningPrizeIndex(int openingPrizeIndex)
public boolean hasItem(net.minecraft.item.Item item)