public class ServerOwnedTileEntityBattleController extends BattleOwnedTileEntityController
client, energySelectionForRetreat, gui, init, render
deckSize, eloMinimum, endingCommand, endingMessage, isShadowGame, prizeCount, startingCommand, startingMessage, timeLimit
Constructor and Description |
---|
ServerOwnedTileEntityBattleController() |
Modifier and Type | Method and Description |
---|---|
void |
discard(PlayerServerState player,
BoardLocation location,
int locationSubIndex) |
void |
endGame(PlayerServerState winner,
PlayerServerState loser,
boolean tiedGame) |
java.lang.String |
formatCommand(java.lang.String command,
java.lang.String winnerName,
java.lang.String loserName) |
GameServerState |
getGameServer() |
void |
mulligan(PlayerServerState player,
GameServerState server) |
void |
playCardFromHandToActive(PlayerServerState player,
int cardIndex,
ImmutableCard check) |
void |
playPokemonCardToBench(PlayerServerState player,
int cardIndex,
ImmutableCard check,
int benchIndex) |
void |
playStadiumCard(PlayerServerState player,
int cardIndex,
ImmutableCard check) |
void |
playTrainerCard(PlayerServerState player,
int cardIndex,
ImmutableCard check) |
void |
requestAbility(int playerIndex,
BoardLocation location,
int locationIndex) |
void |
requestAttack(int playerIndex,
int attackIndex) |
void |
requestEndTurn(PlayerServerState player) |
void |
requestFlip(PlayerServerState player) |
void |
requestPickAttack(int playIndex,
int attackIndex) |
void |
requestRetreatAndSwitch(PlayerServerState player,
java.util.List<CommonCardState> energyPayment,
int benchIndex) |
void |
requestSwitch(PlayerServerState player,
int benchIndex) |
void |
sendRenderPreBattleSyncPackets() |
void |
sendRenderSyncPackets() |
void |
setCardSelection(net.minecraft.entity.player.PlayerEntity entityPlayer,
boolean isOpened,
boolean[] cardSelection) |
void |
setCustomGUIResult(net.minecraft.entity.player.PlayerEntity entityPlayer,
boolean isOpened,
int[] result) |
void |
setPrizes() |
void |
setPrizeSelection(net.minecraft.entity.player.PlayerEntity entityPlayer,
int index) |
void |
tick()
This function must be overridden
|
doesCardListContainCardType, getClient, getDirection, getRender, getRenderBoundingBox, getScale, getShowingPrizes, initialize, onlyOpCanSetNbt, resetClientGame, revealPrize, setClientSideValues, setGui, setRenderClientSideValues
deserializeNBT, getDeckSize, getEloMinimum, getEndingCommand, getEndingMessage, getName, getPrizeCount, getServer, getStartingCommand, getStartingMessage, getTimeLimit, isShadowGame, serializeNBT, setDeckSize, setEloMinimum, setEndingCommand, setEndingMessage, setPrizeCount, setShadowGame, setStartingCommand, setStartingMessage, setTimeLimit, toggleShadowGame, trigger
getOwnerId, getUpdatePacket, onDataPacket, setOwnerId
clearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getUpdateTag, getViewDistance, hasLevel, isRemoved, load, loadStatic, logInvalidState, mirror, onChunkUnloaded, rotate, save, setChanged, setLevelAndPosition, setPosition, setRemoved, triggerEvent
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ServerOwnedTileEntityBattleController()
public GameServerState getGameServer()
getGameServer
in class BattleOwnedTileEntityController
public void tick()
BattleOwnedTileEntityController
tick
in interface net.minecraft.tileentity.ITickableTileEntity
tick
in class BattleOwnedTileEntityController
public void requestEndTurn(PlayerServerState player)
requestEndTurn
in class BattleOwnedTileEntityController
public void endGame(PlayerServerState winner, PlayerServerState loser, boolean tiedGame)
endGame
in class BattleRuleOwnedTileEntity
public void sendRenderPreBattleSyncPackets()
public void sendRenderSyncPackets()
public void setPrizes()
public void mulligan(PlayerServerState player, GameServerState server)
public void playCardFromHandToActive(PlayerServerState player, int cardIndex, ImmutableCard check)
playCardFromHandToActive
in class BattleOwnedTileEntityController
public void playPokemonCardToBench(PlayerServerState player, int cardIndex, ImmutableCard check, int benchIndex)
playPokemonCardToBench
in class BattleOwnedTileEntityController
public void playTrainerCard(PlayerServerState player, int cardIndex, ImmutableCard check)
playTrainerCard
in class BattleOwnedTileEntityController
public void playStadiumCard(PlayerServerState player, int cardIndex, ImmutableCard check)
playStadiumCard
in class BattleOwnedTileEntityController
public void requestAbility(int playerIndex, BoardLocation location, int locationIndex)
requestAbility
in class BattleOwnedTileEntityController
public void requestAttack(int playerIndex, int attackIndex)
requestAttack
in class BattleOwnedTileEntityController
public void requestPickAttack(int playIndex, int attackIndex)
requestPickAttack
in class BattleOwnedTileEntityController
public void requestRetreatAndSwitch(PlayerServerState player, java.util.List<CommonCardState> energyPayment, int benchIndex)
requestRetreatAndSwitch
in class BattleOwnedTileEntityController
public void requestSwitch(PlayerServerState player, int benchIndex)
requestSwitch
in class BattleOwnedTileEntityController
public void setCardSelection(net.minecraft.entity.player.PlayerEntity entityPlayer, boolean isOpened, boolean[] cardSelection)
setCardSelection
in class BattleOwnedTileEntityController
public void setPrizeSelection(net.minecraft.entity.player.PlayerEntity entityPlayer, int index)
setPrizeSelection
in class BattleOwnedTileEntityController
public void setCustomGUIResult(net.minecraft.entity.player.PlayerEntity entityPlayer, boolean isOpened, int[] result)
setCustomGUIResult
in class BattleOwnedTileEntityController
public void requestFlip(PlayerServerState player)
requestFlip
in class BattleOwnedTileEntityController
public java.lang.String formatCommand(java.lang.String command, java.lang.String winnerName, java.lang.String loserName)
formatCommand
in class BattleRuleOwnedTileEntity
public void discard(PlayerServerState player, BoardLocation location, int locationSubIndex)
discard
in class BattleOwnedTileEntityController