Class Game

java.lang.Object
xericker.arenalegends.core.game.Game

public class Game extends Object
  • Constructor Details

    • Game

      public Game(String id)
    • Game

      public Game(String id, org.bukkit.World world)
  • Method Details

    • getId

      public String getId()
    • getConfigId

      public String getConfigId()
    • getConfigFile

      public xericker.xerlib.config.ConfigInstance getConfigFile()
    • registerFile

      public void registerFile()
    • getWorld

      public org.bukkit.World getWorld()
    • getGeneratedId

      @Nullable public String getGeneratedId()
    • getLiveTime

      public long getLiveTime()
    • getState

      public GameState getState()
    • setState

      public void setState(GameState state)
    • isValid

      public boolean isValid()
    • isInGame

      public boolean isInGame()
    • getStatuses

      public Set<GameStatus> getStatuses()
    • getMode

      public GameMode getMode()
    • getMaxToStart

      public int getMaxToStart()
    • getMinToStart

      public int getMinToStart()
    • getOpenSlots

      public int getOpenSlots()
    • getConfig

      public GameSystem getConfig()
    • getRound

      public GameRound getRound()
    • getPlayerHandler

      public PlayerHandler getPlayerHandler()
    • getTeamSelector

      public GameTeamSelector getTeamSelector()
    • getMatchupManager

      public MatchupManager getMatchupManager()
    • getBotHandler

      public BotManager getBotHandler()
    • getMusicPlayer

      public MusicPlayer getMusicPlayer()
    • getLobby

      public LobbyInstance getLobby()
    • setLobby

      public void setLobby(LobbyInstance lobby)
    • getArenas

      public List<ArenaInstance> getArenas()
    • setArenas

      public void setArenas(List<ArenaInstance> arenas)
    • getValidArenas

      public List<ArenaInstance> getValidArenas()
    • getPlayersMap

      public Map<UUID, PlayerState> getPlayersMap()
    • getPlayers

      public List<org.bukkit.entity.Player> getPlayers()
    • getPlayers

      public List<org.bukkit.entity.Player> getPlayers(PlayerState playerState)
    • getPlayerState

      @Nullable public PlayerState getPlayerState(UUID playerId)
    • setPlayerState

      public void setPlayerState(UUID playerId, PlayerState playerState)
    • isValidPlayer

      public boolean isValidPlayer(org.bukkit.entity.Player... players)
    • isValidPlayer

      public boolean isValidPlayer(UUID... playerIds)
    • getTeams

      public List<GameTeam> getTeams()
    • getTeamsAlive

      public List<GameTeam> getTeamsAlive()
    • getTeam

      @Nullable public GameTeam getTeam(@NotNull @NotNull org.bukkit.entity.Player player)
    • getTeam

      @Nullable public GameTeam getTeam(UUID playerId)
    • getMatchup

      @Nullable public MatchupInstance getMatchup(GameTeam gameTeam)
    • getTime

      public long getTime(GameTime gameTime)
    • setTime

      public void setTime(GameTime gameTime, long seconds)
    • isTimeEnabled

      public boolean isTimeEnabled(GameTime gameTime)
    • disableTime

      public void disableTime(GameTime gameTime)
    • processTime

      public void processTime()
    • getWinner

      @Nullable public GameTeam getWinner()
    • processWinner

      public boolean processWinner()
    • processEliminations

      public void processEliminations()