Interface Game
public interface Game
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
int
int
countTeamChests
(RunningTeam team) getActiveDelay
(org.bukkit.entity.Player player, Class<? extends SpecialItem> specialItem) getActiveDelaysOfPlayer
(org.bukkit.entity.Player player) getActivedSpecialItems
(Class<? extends SpecialItem> type) getActivedSpecialItemsOfPlayer
(org.bukkit.entity.Player player) getActivedSpecialItemsOfPlayer
(org.bukkit.entity.Player player, Class<? extends SpecialItem> type) getActivedSpecialItemsOfTeam
(Team team, Class<? extends SpecialItem> type) org.bukkit.WeatherType
boolean
List<org.bukkit.entity.Player>
getFirstActivedSpecialItemOfPlayer
(org.bukkit.entity.Player player) getFirstActivedSpecialItemOfPlayer
(org.bukkit.entity.Player player, Class<? extends SpecialItem> type) getFirstActivedSpecialItemOfTeam
(Team team, Class<? extends SpecialItem> type) org.bukkit.boss.BarColor
int
org.bukkit.World
org.bukkit.boss.BarColor
int
org.bukkit.Location
org.bukkit.World
int
int
getName()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
org.bukkit.Location
getPos1()
org.bukkit.Location
getPos2()
int
org.bukkit.Location
getTeamFromName
(String name) getTeamOfChest
(org.bukkit.block.Block block) getTeamOfChest
(org.bukkit.Location location) getTeamOfPlayer
(org.bukkit.entity.Player player) default boolean
default boolean
boolean
isBlockAddedDuringGame
(org.bukkit.Location location) boolean
isDelayActive
(org.bukkit.entity.Player player, Class<? extends SpecialItem> specialItem) boolean
isEntityShop
(org.bukkit.entity.Entity entity) boolean
isLocationInArena
(org.bukkit.Location location) boolean
isPlayerInAnyTeam
(org.bukkit.entity.Player player) boolean
isPlayerInTeam
(org.bukkit.entity.Player player, RunningTeam team) boolean
isProtectionActive
(org.bukkit.entity.Player player) boolean
void
joinToGame
(org.bukkit.entity.Player player) void
leaveFromGame
(org.bukkit.entity.Player player) void
registerDelay
(DelayFactory delayFactory) void
void
selectPlayerRandomTeam
(org.bukkit.entity.Player player) void
selectPlayerTeam
(org.bukkit.entity.Player player, Team team) void
start()
void
stop()
void
unregisterDelay
(DelayFactory delayFactory) void
-
Method Details
-
getName
String getName()- Returns:
- Arena name
-
getStatus
GameStatus getStatus()- Returns:
- GameStatus of the arena
-
start
void start() -
stop
void stop() -
isActivated
default boolean isActivated()- Returns:
- true if GameStatus is different than DISABLED
-
joinToGame
void joinToGame(org.bukkit.entity.Player player) - Parameters:
player
-
-
leaveFromGame
void leaveFromGame(org.bukkit.entity.Player player) - Parameters:
player
-
-
selectPlayerTeam
- Parameters:
player
-team
-
-
selectPlayerRandomTeam
void selectPlayerRandomTeam(org.bukkit.entity.Player player) - Parameters:
player
-
-
getGameWorld
org.bukkit.World getGameWorld()- Returns:
- defined world of the game
-
getPos1
org.bukkit.Location getPos1()- Returns:
-
getPos2
org.bukkit.Location getPos2()- Returns:
-
getSpectatorSpawn
org.bukkit.Location getSpectatorSpawn()- Returns:
-
getGameTime
int getGameTime()- Returns:
- configured time of the game
-
getMinPlayers
int getMinPlayers()- Returns:
- configured minimal players to start the game
-
getMaxPlayers
int getMaxPlayers()- Returns:
- configured maximal players of the arena
-
countConnectedPlayers
int countConnectedPlayers()- Returns:
- players in game
-
getConnectedPlayers
List<org.bukkit.entity.Player> getConnectedPlayers()- Returns:
- list of players in game
-
getGameStores
- Returns:
- list of game stores
-
countGameStores
int countGameStores()- Returns:
-
getTeamFromName
- Returns:
- Team instance from the name
-
getAvailableTeams
- Returns:
-
countAvailableTeams
int countAvailableTeams()- Returns:
-
getRunningTeams
List<RunningTeam> getRunningTeams()- Returns:
-
countRunningTeams
int countRunningTeams()- Returns:
-
getTeamOfPlayer
- Parameters:
player
-- Returns:
-
isPlayerInAnyTeam
boolean isPlayerInAnyTeam(org.bukkit.entity.Player player) - Parameters:
player
-- Returns:
-
isPlayerInTeam
- Parameters:
player
-team
-- Returns:
-
isLocationInArena
boolean isLocationInArena(org.bukkit.Location location) - Parameters:
location
-- Returns:
-
isBlockAddedDuringGame
boolean isBlockAddedDuringGame(org.bukkit.Location location) - Parameters:
location
-- Returns:
-
getActivedSpecialItems
List<SpecialItem> getActivedSpecialItems()- Returns:
-
getActivedSpecialItems
- Parameters:
type
-- Returns:
-
getActivedSpecialItemsOfTeam
- Parameters:
team
-- Returns:
-
getActivedSpecialItemsOfTeam
- Parameters:
team
-type
-- Returns:
-
getFirstActivedSpecialItemOfTeam
- Parameters:
team
-- Returns:
-
getFirstActivedSpecialItemOfTeam
- Parameters:
team
-type
-- Returns:
-
getActivedSpecialItemsOfPlayer
- Parameters:
player
-- Returns:
-
getActivedSpecialItemsOfPlayer
List<SpecialItem> getActivedSpecialItemsOfPlayer(org.bukkit.entity.Player player, Class<? extends SpecialItem> type) - Parameters:
player
-type
-- Returns:
-
getFirstActivedSpecialItemOfPlayer
- Parameters:
player
-- Returns:
-
getFirstActivedSpecialItemOfPlayer
SpecialItem getFirstActivedSpecialItemOfPlayer(org.bukkit.entity.Player player, Class<? extends SpecialItem> type) - Parameters:
player
-type
-- Returns:
-
getActiveDelays
List<DelayFactory> getActiveDelays()- Returns:
-
getActiveDelaysOfPlayer
- Parameters:
player
-- Returns:
-
getActiveDelay
DelayFactory getActiveDelay(org.bukkit.entity.Player player, Class<? extends SpecialItem> specialItem) - Parameters:
player
-specialItem
-- Returns:
-
registerDelay
- Parameters:
delayFactory
-
-
unregisterDelay
- Parameters:
delayFactory
-
-
isDelayActive
- Parameters:
player
-specialItem
-- Returns:
-
registerSpecialItem
- Parameters:
item
-
-
unregisterSpecialItem
- Parameters:
item
-
-
isRegisteredSpecialItem
- Parameters:
item
-- Returns:
-
getItemSpawners
List<ItemSpawner> getItemSpawners()- Returns:
-
getRegion
Region getRegion()- Returns:
-
getStatusBar
StatusBar getStatusBar()- Returns:
-
getLobbyWorld
org.bukkit.World getLobbyWorld()- Returns:
-
getLobbySpawn
org.bukkit.Location getLobbySpawn()- Returns:
-
getLobbyCountdown
int getLobbyCountdown()- Returns:
-
countTeamChests
int countTeamChests()- Returns:
-
countTeamChests
- Parameters:
team
-- Returns:
-
getTeamOfChest
- Parameters:
location
-- Returns:
-
getTeamOfChest
- Parameters:
block
-- Returns:
-
isEntityShop
boolean isEntityShop(org.bukkit.entity.Entity entity) - Parameters:
entity
-- Returns:
-
getCompassEnabled
InGameConfigBooleanConstants getCompassEnabled()- Returns:
-
getOriginalOrInheritedCompassEnabled
boolean getOriginalOrInheritedCompassEnabled()- Returns:
-
getJoinRandomTeamAfterLobby
InGameConfigBooleanConstants getJoinRandomTeamAfterLobby()- Returns:
-
getOriginalOrInheritedJoinRandomTeamAfterLobby
boolean getOriginalOrInheritedJoinRandomTeamAfterLobby()- Returns:
-
getJoinRandomTeamOnJoin
InGameConfigBooleanConstants getJoinRandomTeamOnJoin()- Returns:
-
getOriginalOrInheritedJoinRandomTeamOnJoin
boolean getOriginalOrInheritedJoinRandomTeamOnJoin()- Returns:
-
getAddWoolToInventoryOnJoin
InGameConfigBooleanConstants getAddWoolToInventoryOnJoin()- Returns:
-
getOriginalOrInheritedAddWoolToInventoryOnJoin
boolean getOriginalOrInheritedAddWoolToInventoryOnJoin()- Returns:
-
getPreventKillingVillagers
InGameConfigBooleanConstants getPreventKillingVillagers()- Returns:
-
getOriginalOrInheritedPreventKillingVillagers
boolean getOriginalOrInheritedPreventKillingVillagers()- Returns:
-
getPlayerDrops
InGameConfigBooleanConstants getPlayerDrops()- Returns:
-
getOriginalOrInheritedPlayerDrops
boolean getOriginalOrInheritedPlayerDrops()- Returns:
-
getFriendlyfire
InGameConfigBooleanConstants getFriendlyfire()- Returns:
-
getOriginalOrInheritedFriendlyfire
boolean getOriginalOrInheritedFriendlyfire()- Returns:
-
getColoredLeatherByTeamInLobby
InGameConfigBooleanConstants getColoredLeatherByTeamInLobby()- Returns:
-
getOriginalOrInheritedColoredLeatherByTeamInLobby
boolean getOriginalOrInheritedColoredLeatherByTeamInLobby()- Returns:
-
getKeepInventory
InGameConfigBooleanConstants getKeepInventory()- Returns:
-
getOriginalOrInheritedKeepInventory
boolean getOriginalOrInheritedKeepInventory()- Returns:
-
getCrafting
InGameConfigBooleanConstants getCrafting()- Returns:
-
getOriginalOrInheritedCrafting
boolean getOriginalOrInheritedCrafting()- Returns:
-
getLobbyBossbar
InGameConfigBooleanConstants getLobbyBossbar()- Returns:
-
getOriginalOrInheritedLobbyBossbar
boolean getOriginalOrInheritedLobbyBossbar()- Returns:
-
getGameBossbar
InGameConfigBooleanConstants getGameBossbar()- Returns:
-
getOriginalOrInheritedGameBossbar
boolean getOriginalOrInheritedGameBossbar()- Returns:
-
getScoreboard
InGameConfigBooleanConstants getScoreboard()- Returns:
-
getOriginalOrInheritedScoreaboard
boolean getOriginalOrInheritedScoreaboard()- Returns:
-
getLobbyScoreboard
InGameConfigBooleanConstants getLobbyScoreboard()- Returns:
-
getOriginalOrInheritedLobbyScoreaboard
boolean getOriginalOrInheritedLobbyScoreaboard()- Returns:
-
getPreventSpawningMobs
InGameConfigBooleanConstants getPreventSpawningMobs()- Returns:
-
getOriginalOrInheritedPreventSpawningMobs
boolean getOriginalOrInheritedPreventSpawningMobs()- Returns:
-
getSpawnerHolograms
InGameConfigBooleanConstants getSpawnerHolograms()- Returns:
-
getOriginalOrInheritedSpawnerHolograms
boolean getOriginalOrInheritedSpawnerHolograms()- Returns:
-
getSpawnerDisableMerge
InGameConfigBooleanConstants getSpawnerDisableMerge()- Returns:
-
getOriginalOrInheritedSpawnerDisableMerge
boolean getOriginalOrInheritedSpawnerDisableMerge()- Returns:
-
getGameStartItems
InGameConfigBooleanConstants getGameStartItems()- Returns:
-
getOriginalOrInheritedGameStartItems
boolean getOriginalOrInheritedGameStartItems()- Returns:
-
getPlayerRespawnItems
InGameConfigBooleanConstants getPlayerRespawnItems()- Returns:
-
getOriginalOrInheritedPlayerRespawnItems
boolean getOriginalOrInheritedPlayerRespawnItems()- Returns:
-
getSpawnerHologramsCountdown
InGameConfigBooleanConstants getSpawnerHologramsCountdown()- Returns:
-
getOriginalOrInheritedSpawnerHologramsCountdown
boolean getOriginalOrInheritedSpawnerHologramsCountdown()- Returns:
-
getDamageWhenPlayerIsNotInArena
InGameConfigBooleanConstants getDamageWhenPlayerIsNotInArena()- Returns:
-
getOriginalOrInheritedDamageWhenPlayerIsNotInArena
boolean getOriginalOrInheritedDamageWhenPlayerIsNotInArena()- Returns:
-
getRemoveUnusedTargetBlocks
InGameConfigBooleanConstants getRemoveUnusedTargetBlocks()- Returns:
-
getOriginalOrInheritedRemoveUnusedTargetBlocks
boolean getOriginalOrInheritedRemoveUnusedTargetBlocks()- Returns:
-
getAllowBlockFalling
InGameConfigBooleanConstants getAllowBlockFalling()- Returns:
-
getOriginalOrInheritedAllowBlockFalling
boolean getOriginalOrInheritedAllowBlockFalling()- Returns:
-
getHoloAboveBed
InGameConfigBooleanConstants getHoloAboveBed()- Returns:
-
getOriginalOrInheritedHoloAboveBed
boolean getOriginalOrInheritedHoloAboveBed()- Returns:
-
getSpectatorJoin
InGameConfigBooleanConstants getSpectatorJoin()- Returns:
-
getOriginalOrInheritedSpectatorJoin
boolean getOriginalOrInheritedSpectatorJoin()- Returns:
-
getStopTeamSpawnersOnDie
InGameConfigBooleanConstants getStopTeamSpawnersOnDie()- Returns:
-
getOriginalOrInheritedStopTeamSpawnersOnDie
boolean getOriginalOrInheritedStopTeamSpawnersOnDie()- Returns:
-
getBungeeEnabled
boolean getBungeeEnabled()- Returns:
-
getArenaTime
ArenaTime getArenaTime()- Returns:
-
getArenaWeather
org.bukkit.WeatherType getArenaWeather()- Returns:
-
getLobbyBossBarColor
org.bukkit.boss.BarColor getLobbyBossBarColor()- Returns:
-
getGameBossBarColor
org.bukkit.boss.BarColor getGameBossBarColor()- Returns:
-
isProtectionActive
boolean isProtectionActive(org.bukkit.entity.Player player) - Returns:
-
getAnchorAutoFill
InGameConfigBooleanConstants getAnchorAutoFill()- Returns:
-
getOriginalOrInheritedAnchorAutoFill
boolean getOriginalOrInheritedAnchorAutoFill()- Returns:
-
getAnchorDecreasing
InGameConfigBooleanConstants getAnchorDecreasing()- Returns:
-
getOriginalOrInheritedAnchorDecreasing
boolean getOriginalOrInheritedAnchorDecreasing()- Returns:
-
getCakeTargetBlockEating
InGameConfigBooleanConstants getCakeTargetBlockEating()- Returns:
-
getOriginalOrInheritedCakeTargetBlockEating
boolean getOriginalOrInheritedCakeTargetBlockEating()- Returns:
-
getTargetBlockExplosions
InGameConfigBooleanConstants getTargetBlockExplosions()- Returns:
-
getOriginalOrInheritedTargetBlockExplosions
boolean getOriginalOrInheritedTargetBlockExplosions()- Returns:
-
getPostGameWaiting
int getPostGameWaiting() -
hasCustomPrefix
default boolean hasCustomPrefix() -
getCustomPrefix
String getCustomPrefix()
-