Class BattleRuleOwnedTileEntity

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
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:
BattleOwnedTileEntityController

public class BattleRuleOwnedTileEntity extends OwnedTileEntity
  • Field Details

    • deckSize

      protected int deckSize
    • prizeCount

      protected int prizeCount
    • eloMinimum

      protected int eloMinimum
    • startingCommand

      protected String startingCommand
      The commands stored in the battle block.
    • endingCommand

      protected String endingCommand
    • startingMessage

      protected String startingMessage
    • endingMessage

      protected String endingMessage
    • timeLimit

      protected int timeLimit
      Time limit in seconds
    • isShadowGame

      protected boolean isShadowGame
  • Constructor Details

    • BattleRuleOwnedTileEntity

      public BattleRuleOwnedTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • deserializeNBT

      public void deserializeNBT(net.minecraft.nbt.CompoundTag nbt)
      Specified by:
      deserializeNBT in interface net.minecraftforge.common.extensions.IForgeBlockEntity
      Specified by:
      deserializeNBT in interface net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
      Overrides:
      deserializeNBT in class OwnedTileEntity
    • serializeNBT

      public net.minecraft.nbt.CompoundTag serializeNBT()
      Specified by:
      serializeNBT in interface net.minecraftforge.common.extensions.IForgeBlockEntity
      Specified by:
      serializeNBT in interface net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
      Overrides:
      serializeNBT in class OwnedTileEntity
    • trigger

      public int trigger(net.minecraft.world.level.Level level, String command, String winnerName, String loserName)
    • formatCommand

      public String formatCommand(String command, String winnerName, String loserName)
    • getDeckSize

      public int getDeckSize()
    • setDeckSize

      public void setDeckSize(int deckSize)
    • getTimeLimit

      public int getTimeLimit()
    • getPrizeCount

      public int getPrizeCount()
    • setPrizeCount

      public void setPrizeCount(int prizeCount)
    • getEloMinimum

      public int getEloMinimum()
    • setEloMinimum

      public void setEloMinimum(int eloMinimum)
    • getStartingCommand

      public String getStartingCommand()
    • setStartingCommand

      public void setStartingCommand(String startingCommand)
    • getEndingCommand

      public String getEndingCommand()
    • setEndingCommand

      public void setEndingCommand(String endingCommand)
    • getStartingMessage

      public String getStartingMessage()
    • setStartingMessage

      public void setStartingMessage(String startingMessage)
    • getEndingMessage

      public String getEndingMessage()
    • setEndingMessage

      public void setEndingMessage(String endingMessage)
    • setTimeLimit

      public void setTimeLimit(int timeLimit)
    • getName

      public String getName()
    • getServer

      @Nullable public net.minecraft.server.MinecraftServer getServer()
    • endGame

      public void endGame(PlayerServerState winner, PlayerServerState loser, boolean tiedGame)
    • isShadowGame

      public boolean isShadowGame()
    • setShadowGame

      public void setShadowGame(boolean b)
    • toggleShadowGame

      public void toggleShadowGame()