Package com.pixelmonmod.tcg.tileentity
Class ServerOwnedTileEntityBattleController
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
com.pixelmonmod.tcg.tileentity.ServerOwnedTileEntityBattleController
- 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>
Created by Hy on 5/8/2016.
-
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
Fields inherited from class com.pixelmonmod.tcg.tileentity.BattleOwnedTileEntityController
client, energySelectionForRetreat, gui, init, render
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
ConstructorDescriptionServerOwnedTileEntityBattleController
(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) ServerOwnedTileEntityBattleController
(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) void
endGame
(PlayerServerState winner, PlayerServerState loser, boolean tiedGame) formatCommand
(String command, String winnerName, String loserName) 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, List<CommonCardState> energyPayment, int benchIndex) void
requestSwitch
(PlayerServerState player, int benchIndex) void
void
void
setCardSelection
(net.minecraft.world.entity.player.Player entityPlayer, boolean isOpened, boolean[] cardSelection) void
setCustomGUIResult
(net.minecraft.world.entity.player.Player entityPlayer, boolean isOpened, int[] result) void
void
setPrizeSelection
(net.minecraft.world.entity.player.Player entityPlayer, int index) static void
tick
(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, ServerOwnedTileEntityBattleController blockEntity) Methods inherited from class com.pixelmonmod.tcg.tileentity.BattleOwnedTileEntityController
doesCardListContainCardType, getClient, getDirection, getRender, getRenderBoundingBox, getScale, getShowingPrizes, initialize, onlyOpCanSetNbt, resetClientGame, revealPrize, setClientSideValues, setGui, setRenderClientSideValues
Methods inherited from class com.pixelmonmod.tcg.tileentity.BattleRuleOwnedTileEntity
deserializeNBT, 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
-
Constructor Details
-
ServerOwnedTileEntityBattleController
public ServerOwnedTileEntityBattleController(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
ServerOwnedTileEntityBattleController
public ServerOwnedTileEntityBattleController(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
getGameServer
- Overrides:
getGameServer
in classBattleOwnedTileEntityController
-
tick
public static void tick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, ServerOwnedTileEntityBattleController blockEntity) -
requestEndTurn
- Overrides:
requestEndTurn
in classBattleOwnedTileEntityController
-
endGame
- Overrides:
endGame
in classBattleRuleOwnedTileEntity
-
sendRenderPreBattleSyncPackets
public void sendRenderPreBattleSyncPackets() -
sendRenderSyncPackets
public void sendRenderSyncPackets() -
setPrizes
public void setPrizes() -
mulligan
-
playCardFromHandToActive
- Overrides:
playCardFromHandToActive
in classBattleOwnedTileEntityController
-
playPokemonCardToBench
public void playPokemonCardToBench(PlayerServerState player, int cardIndex, ImmutableCard check, int benchIndex) - Overrides:
playPokemonCardToBench
in classBattleOwnedTileEntityController
-
playTrainerCard
- Overrides:
playTrainerCard
in classBattleOwnedTileEntityController
-
playStadiumCard
- Overrides:
playStadiumCard
in classBattleOwnedTileEntityController
-
requestAbility
- Overrides:
requestAbility
in classBattleOwnedTileEntityController
-
requestAttack
public void requestAttack(int playerIndex, int attackIndex) - Overrides:
requestAttack
in classBattleOwnedTileEntityController
-
requestPickAttack
public void requestPickAttack(int playIndex, int attackIndex) - Overrides:
requestPickAttack
in classBattleOwnedTileEntityController
-
requestRetreatAndSwitch
public void requestRetreatAndSwitch(PlayerServerState player, List<CommonCardState> energyPayment, int benchIndex) - Overrides:
requestRetreatAndSwitch
in classBattleOwnedTileEntityController
-
requestSwitch
- Overrides:
requestSwitch
in classBattleOwnedTileEntityController
-
setCardSelection
public void setCardSelection(net.minecraft.world.entity.player.Player entityPlayer, boolean isOpened, boolean[] cardSelection) - Overrides:
setCardSelection
in classBattleOwnedTileEntityController
-
setPrizeSelection
public void setPrizeSelection(net.minecraft.world.entity.player.Player entityPlayer, int index) - Overrides:
setPrizeSelection
in classBattleOwnedTileEntityController
-
setCustomGUIResult
public void setCustomGUIResult(net.minecraft.world.entity.player.Player entityPlayer, boolean isOpened, int[] result) - Overrides:
setCustomGUIResult
in classBattleOwnedTileEntityController
-
requestFlip
- Overrides:
requestFlip
in classBattleOwnedTileEntityController
-
formatCommand
- Overrides:
formatCommand
in classBattleRuleOwnedTileEntity
-
discard
- Overrides:
discard
in classBattleOwnedTileEntityController
-