public class BattleOwnedTileEntityController extends BattleRuleOwnedTileEntity implements net.minecraft.tileentity.ITickableTileEntity
Modifier and Type | Field and Description |
---|---|
protected GameClientState |
client |
boolean[] |
energySelectionForRetreat |
protected TCGScreen |
gui |
protected boolean |
init |
protected RenderState |
render |
deckSize, eloMinimum, endingCommand, endingMessage, isShadowGame, prizeCount, startingCommand, startingMessage, timeLimit
Constructor and Description |
---|
BattleOwnedTileEntityController() |
Modifier and Type | Method and Description |
---|---|
void |
discard(PlayerServerState player,
BoardLocation location,
int locationSubIndex) |
boolean |
doesCardListContainCardType(java.util.List<ImmutableCard> cards,
CardType type) |
GameClientState |
getClient() |
net.minecraft.util.Direction |
getDirection() |
GameServerState |
getGameServer() |
RenderState |
getRender() |
net.minecraft.util.math.AxisAlignedBB |
getRenderBoundingBox() |
float |
getScale() |
java.util.Map<java.lang.Integer,ImmutableCard> |
getShowingPrizes() |
protected void |
initialize() |
boolean |
onlyOpCanSetNbt() |
void |
playCardFromHandToActive(PlayerServerState player,
int cardIndex,
ImmutableCard check) |
void |
playPokemonCardToBench(PlayerServerState player,
int cardIndex,
ImmutableCard check,
int bench) |
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 newActivePos) |
void |
requestSwitch(PlayerServerState player,
int newActivePos) |
void |
resetClientGame() |
void |
revealPrize(int prizeIndex,
ImmutableCard prize) |
void |
setCardSelection(net.minecraft.entity.player.PlayerEntity player,
boolean isOpened,
boolean[] cardSelection) |
void |
setClientSideValues(GamePhase gamePhase,
int whichPlayerAmI,
boolean isMyTurn,
PlayerClientMyState myState,
PlayerClientOpponentState oppState,
DuelLog log,
int turnCount,
CoinFlipState coinFlip) |
void |
setCustomGUIResult(net.minecraft.entity.player.PlayerEntity player,
boolean isOpened,
int[] result) |
void |
setGui(TCGScreen gui) |
void |
setPrizeSelection(net.minecraft.entity.player.PlayerEntity player,
int index) |
void |
setRenderClientSideValues(GamePhase gamePhase,
int currentTurn,
PlayerClientOpponentState[] players) |
void |
tick()
This function must be overridden
|
deserializeNBT, endGame, formatCommand, 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
protected GameClientState client
protected RenderState render
protected TCGScreen gui
protected boolean init
public boolean[] energySelectionForRetreat
public void tick()
tick
in interface net.minecraft.tileentity.ITickableTileEntity
protected void initialize()
public float getScale()
public net.minecraft.util.Direction getDirection()
public void resetClientGame()
public net.minecraft.util.math.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox
in interface net.minecraftforge.common.extensions.IForgeTileEntity
public void setClientSideValues(GamePhase gamePhase, int whichPlayerAmI, boolean isMyTurn, PlayerClientMyState myState, PlayerClientOpponentState oppState, DuelLog log, int turnCount, CoinFlipState coinFlip)
public void setRenderClientSideValues(GamePhase gamePhase, int currentTurn, PlayerClientOpponentState[] players)
public GameClientState getClient()
public RenderState getRender()
public void setGui(TCGScreen gui)
public boolean doesCardListContainCardType(java.util.List<ImmutableCard> cards, CardType type)
public boolean onlyOpCanSetNbt()
onlyOpCanSetNbt
in class net.minecraft.tileentity.TileEntity
public GameServerState getGameServer()
public void requestAbility(int playerIndex, BoardLocation location, int locationIndex)
public void requestAttack(int playerIndex, int attackIndex)
public void requestPickAttack(int playIndex, int attackIndex)
public void requestEndTurn(PlayerServerState player)
public void playTrainerCard(PlayerServerState player, int cardIndex, ImmutableCard check)
public void playPokemonCardToBench(PlayerServerState player, int cardIndex, ImmutableCard check, int bench)
public void playCardFromHandToActive(PlayerServerState player, int cardIndex, ImmutableCard check)
public void playStadiumCard(PlayerServerState player, int cardIndex, ImmutableCard check)
public void setCardSelection(net.minecraft.entity.player.PlayerEntity player, boolean isOpened, boolean[] cardSelection)
public void setPrizeSelection(net.minecraft.entity.player.PlayerEntity player, int index)
public void requestRetreatAndSwitch(PlayerServerState player, java.util.List<CommonCardState> energyPayment, int newActivePos)
public void requestSwitch(PlayerServerState player, int newActivePos)
public void requestFlip(PlayerServerState player)
public void discard(PlayerServerState player, BoardLocation location, int locationSubIndex)
public void setCustomGUIResult(net.minecraft.entity.player.PlayerEntity player, boolean isOpened, int[] result)
public void revealPrize(int prizeIndex, ImmutableCard prize)
public java.util.Map<java.lang.Integer,ImmutableCard> getShowingPrizes()