Package com.pixelmonmod.tcg.tileentity
Class BattleOwnedTileEntityController
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
com.pixelmonmod.tcg.tileentity.OwnedTileEntity
com.pixelmonmod.tcg.tileentity.BattleRuleOwnedTileEntity
com.pixelmonmod.tcg.tileentity.BattleOwnedTileEntityController
- All Implemented Interfaces:
net.minecraftforge.common.capabilities.ICapabilityProvider
,net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>
,net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>
,net.minecraftforge.common.extensions.IForgeBlockEntity
,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
- Direct Known Subclasses:
ServerOwnedTileEntityBattleController
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>>
-
Field Summary
Modifier and TypeFieldDescriptionprotected GameClientState
boolean[]
protected TCGScreen
protected boolean
protected RenderState
Fields inherited from class com.pixelmonmod.tcg.tileentity.BattleRuleOwnedTileEntity
deckSize, eloMinimum, endingCommand, endingMessage, isShadowGame, prizeCount, startingCommand, startingMessage, timeLimit
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB
-
Constructor Summary
ConstructorDescriptionBattleOwnedTileEntityController
(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionvoid
discard
(PlayerServerState player, BoardLocation location, int locationSubIndex) boolean
doesCardListContainCardType
(List<ImmutableCard> cards, CardType type) net.minecraft.core.Direction
net.minecraft.world.phys.AABB
float
getScale()
protected void
boolean
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, List<CommonCardState> energyPayment, int newActivePos) void
requestSwitch
(PlayerServerState player, int newActivePos) void
void
revealPrize
(int prizeIndex, ImmutableCard prize) void
setCardSelection
(net.minecraft.world.entity.player.Player 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.world.entity.player.Player player, boolean isOpened, int[] result) void
void
setPrizeSelection
(net.minecraft.world.entity.player.Player player, int index) void
setRenderClientSideValues
(GamePhase gamePhase, int currentTurn, PlayerClientOpponentState[] players) Methods inherited from class com.pixelmonmod.tcg.tileentity.BattleRuleOwnedTileEntity
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
Methods inherited from class com.pixelmonmod.tcg.tileentity.OwnedTileEntity
getOwnerId, getUpdatePacket, onDataPacket, setOwnerId
Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, getUpdateTag, hasLevel, isRemoved, load, loadStatic, onChunkUnloaded, saveAdditional, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEvent
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
getModelData, handleUpdateTag, hasCustomOutlineRendering, onLoad, requestModelDataUpdate
-
Field Details
-
client
-
render
-
gui
-
init
protected boolean init -
energySelectionForRetreat
public boolean[] energySelectionForRetreat
-
-
Constructor Details
-
BattleOwnedTileEntityController
public BattleOwnedTileEntityController(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
initialize
protected void initialize() -
getScale
public float getScale() -
getDirection
public net.minecraft.core.Direction getDirection() -
resetClientGame
public void resetClientGame() -
getRenderBoundingBox
public net.minecraft.world.phys.AABB getRenderBoundingBox() -
setClientSideValues
public void setClientSideValues(GamePhase gamePhase, int whichPlayerAmI, boolean isMyTurn, PlayerClientMyState myState, PlayerClientOpponentState oppState, DuelLog log, int turnCount, CoinFlipState coinFlip) -
setRenderClientSideValues
public void setRenderClientSideValues(GamePhase gamePhase, int currentTurn, PlayerClientOpponentState[] players) -
getClient
-
getRender
-
setGui
-
doesCardListContainCardType
-
onlyOpCanSetNbt
public boolean onlyOpCanSetNbt()- Overrides:
onlyOpCanSetNbt
in classnet.minecraft.world.level.block.entity.BlockEntity
-
getGameServer
-
requestAbility
-
requestAttack
public void requestAttack(int playerIndex, int attackIndex) -
requestPickAttack
public void requestPickAttack(int playIndex, int attackIndex) -
requestEndTurn
-
playTrainerCard
-
playPokemonCardToBench
public void playPokemonCardToBench(PlayerServerState player, int cardIndex, ImmutableCard check, int bench) -
playCardFromHandToActive
-
playStadiumCard
-
setCardSelection
public void setCardSelection(net.minecraft.world.entity.player.Player player, boolean isOpened, boolean[] cardSelection) -
setPrizeSelection
public void setPrizeSelection(net.minecraft.world.entity.player.Player player, int index) -
requestRetreatAndSwitch
public void requestRetreatAndSwitch(PlayerServerState player, List<CommonCardState> energyPayment, int newActivePos) -
requestSwitch
-
requestFlip
-
discard
-
setCustomGUIResult
public void setCustomGUIResult(net.minecraft.world.entity.player.Player player, boolean isOpened, int[] result) -
revealPrize
-
getShowingPrizes
-