Class BattleOwnedTileEntityController

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
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

public class BattleOwnedTileEntityController extends BattleRuleOwnedTileEntity
  • Field Details

    • client

      protected GameClientState client
    • render

      protected RenderState render
    • gui

      protected TCGScreen 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

      public GameClientState getClient()
    • getRender

      public RenderState getRender()
    • setGui

      public void setGui(TCGScreen gui)
    • doesCardListContainCardType

      public boolean doesCardListContainCardType(List<ImmutableCard> cards, CardType type)
    • onlyOpCanSetNbt

      public boolean onlyOpCanSetNbt()
      Overrides:
      onlyOpCanSetNbt in class net.minecraft.world.level.block.entity.BlockEntity
    • getGameServer

      public GameServerState getGameServer()
    • requestAbility

      public void requestAbility(int playerIndex, BoardLocation location, int locationIndex)
    • requestAttack

      public void requestAttack(int playerIndex, int attackIndex)
    • requestPickAttack

      public void requestPickAttack(int playIndex, int attackIndex)
    • requestEndTurn

      public void requestEndTurn(PlayerServerState player)
    • playTrainerCard

      public void playTrainerCard(PlayerServerState player, int cardIndex, ImmutableCard check)
    • playPokemonCardToBench

      public void playPokemonCardToBench(PlayerServerState player, int cardIndex, ImmutableCard check, int bench)
    • playCardFromHandToActive

      public void playCardFromHandToActive(PlayerServerState player, int cardIndex, ImmutableCard check)
    • playStadiumCard

      public void playStadiumCard(PlayerServerState player, int cardIndex, ImmutableCard check)
    • 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

      public void requestSwitch(PlayerServerState player, int newActivePos)
    • requestFlip

      public void requestFlip(PlayerServerState player)
    • discard

      public void discard(PlayerServerState player, BoardLocation location, int locationSubIndex)
    • setCustomGUIResult

      public void setCustomGUIResult(net.minecraft.world.entity.player.Player player, boolean isOpened, int[] result)
    • revealPrize

      public void revealPrize(int prizeIndex, ImmutableCard prize)
    • getShowingPrizes

      public Map<Integer,ImmutableCard> getShowingPrizes()