Uses of Interface
com.andrei1058.bedwars.api.arena.IArena
Package
Description
-
Uses of IArena in com.andrei1058.bedwars.api
Modifier and TypeMethodDescriptionBedWars.ArenaUtil.getArenaByIdentifier
(String worldName) BedWars.ArenaUtil.getArenaByName
(String worldName) Get an arena by world nameBedWars.ArenaUtil.getArenaByPlayer
(org.bukkit.entity.Player player) Get an arena by a player.Modifier and TypeMethodDescriptionBedWars.ArenaUtil.getArenas()
BedWars.ArenaUtil.getEnableQueue()
Arena enable queue.Modifier and TypeMethodDescriptionvoid
BedWars.ArenaUtil.addToEnableQueue
(IArena a) Add a custom arena to the enable queue.int
BedWars.TeamUpgradesUtil.getTotalUpgradeTiers
(IArena arena) Get total tiers in team upgrades to be bought in the given arena.void
BedWars.ArenaUtil.removeArenaByPlayer
(org.bukkit.entity.Player p, IArena a) Removevoid
BedWars.ArenaUtil.removeFromEnableQueue
(IArena a) Remove an arena from the enable queue.void
BedWars.ArenaUtil.setArenaByName
(IArena arena) void
BedWars.ArenaUtil.setArenaByPlayer
(org.bukkit.entity.Player p, IArena arena) Set an arena by player if the player is in this arena. -
Uses of IArena in com.andrei1058.bedwars.api.arena.generator
-
Uses of IArena in com.andrei1058.bedwars.api.arena.shop
Modifier and TypeMethodDescriptionstatic void
ShopHolo.clearForArena
(IArena a) void
Give content to a player -
Uses of IArena in com.andrei1058.bedwars.api.arena.stats
-
Uses of IArena in com.andrei1058.bedwars.api.arena.team
-
Uses of IArena in com.andrei1058.bedwars.api.events.gameplay
Modifier and TypeMethodDescriptionEggBridgeBuildEvent.getArena()
Get the arenaEggBridgeThrowEvent.getArena()
Get arenaGameEndEvent.getArena()
Get the arenaGameStateChangeEvent.getArena()
NextEventChangeEvent.getArena()
Get the arena where happened.TeamAssignEvent.getArena()
Get the arenaModifierConstructorDescriptionEggBridgeBuildEvent
(TeamColor teamColor, IArena arena, org.bukkit.block.Block block) Called when the eggBridge is building another blockEggBridgeThrowEvent
(org.bukkit.entity.Player player, IArena arena) Called when a player throw an egg bridge and it starts buildingGameEndEvent
(IArena arena, List<UUID> winners, List<UUID> losers, ITeam teamWinner, List<UUID> aliveWinners) Triggered when the game ends.GameStateChangeEvent
(IArena a, GameState oldState, GameState newState) Called when the status of the game is changed.NextEventChangeEvent
(IArena arena, NextEvent newEvent, NextEvent oldEvent) TeamAssignEvent
(org.bukkit.entity.Player player, ITeam team, IArena arena) Called for each player when the waiting countdown == 0 You can cancel each team assign event in order to manage them yourself but make sure to set BedWarsTeam#setBedDestroyed(false) if teams are marked as eliminated when they are not, and use BedWarsTeam#firstSpawn(p) to spawn them. -
Uses of IArena in com.andrei1058.bedwars.api.events.player
Modifier and TypeMethodDescriptionPlayerBedBreakEvent.getArena()
PlayerBedBugSpawnEvent.getArena()
PlayerDreamDefenderSpawnEvent.getArena()
PlayerFirstSpawnEvent.getArena()
Get the arenaPlayerGeneratorCollectEvent.getArena()
PlayerInvisibilityPotionEvent.getArena()
PlayerJoinArenaEvent.getArena()
Get arenaPlayerKillEvent.getArena()
PlayerLeaveArenaEvent.getArena()
Get the arenaPlayerReJoinEvent.getArena()
Get arenaPlayerReSpawnEvent.getArena()
Get the arenaModifierConstructorDescriptionPlayerBedBreakEvent
(org.bukkit.entity.Player p, ITeam playerTeam, ITeam victimTeam, IArena arena, Function<org.bukkit.entity.Player, String> message, Function<org.bukkit.entity.Player, String> title, Function<org.bukkit.entity.Player, String> subTitle) Called when a bed gets destroyed.PlayerBedBugSpawnEvent
(org.bukkit.entity.Player p, ITeam playerTeam, IArena arena) Called when a bed gets destroyed.PlayerDreamDefenderSpawnEvent
(org.bukkit.entity.Player p, ITeam playerTeam, IArena arena) Called when a bed gets destroyed.PlayerFirstSpawnEvent
(org.bukkit.entity.Player player, IArena arena, ITeam team) Called when a member is spawned for the first time on his islandPlayerGeneratorCollectEvent
(org.bukkit.entity.Player player, org.bukkit.entity.Item item, IArena arena) Triggered when players collect from generators.PlayerInvisibilityPotionEvent
(PlayerInvisibilityPotionEvent.Type type, ITeam team, org.bukkit.entity.Player player, IArena arena) This event is called when invisibility potions are managed by Bed-Wars.PlayerJoinArenaEvent
(IArena arena, org.bukkit.entity.Player p, boolean spectator) This event is called when a player joins the arena as a player or spectator.PlayerKillEvent
(@NotNull IArena arena, @NotNull org.bukkit.entity.Player victim, @Nullable ITeam victimTeam, @Nullable org.bukkit.entity.Player killer, @Nullable ITeam killerTeam, @Nullable Function<org.bukkit.entity.Player, String> message, @NotNull PlayerKillEvent.PlayerKillCause cause) PlayerKillEvent
(@NotNull IArena arena, org.bukkit.entity.Player victim, org.bukkit.entity.Player killer, Function<org.bukkit.entity.Player, String> message, PlayerKillEvent.PlayerKillCause cause) Deprecated.PlayerLeaveArenaEvent
(org.bukkit.entity.Player p, IArena arena) Deprecated.PlayerLeaveArenaEvent
(org.bukkit.entity.Player p, IArena arena, @Nullable org.bukkit.entity.Player lastDamager) Called when a player leaves the arena.PlayerReJoinEvent
(org.bukkit.entity.Player player, IArena arena, int respawnTime) Called when a player re-joins the arena.PlayerReSpawnEvent
(org.bukkit.entity.Player player, IArena arena, ITeam team) Called when a member is re-spawned on his island This is called about 5 seconds after PlayerRespawnEvent from Bukkit After the respawn countdown. -
Uses of IArena in com.andrei1058.bedwars.api.events.server
ModifierConstructorDescriptionCalled when an arena is enabled successfully. -
Uses of IArena in com.andrei1058.bedwars.api.events.shop
ModifierConstructorDescriptionShopBuyEvent
(org.bukkit.entity.Player buyer, IArena arena, ICategoryContent categoryContent) Triggered when a player buys from the shopShopOpenEvent
(org.bukkit.entity.Player player, IArena arena) Triggered when the shop NPS is clicked. -
Uses of IArena in com.andrei1058.bedwars.api.events.spectator
Modifier and TypeMethodDescriptionSpectatorFirstPersonEnterEvent.getArena()
Get the arenaSpectatorFirstPersonLeaveEvent.getArena()
Get the arenaSpectatorTeleportToPlayerEvent.getArena()
Get the arenaModifierConstructorDescriptionSpectatorFirstPersonEnterEvent
(@NotNull org.bukkit.entity.Player spectator, @NotNull org.bukkit.entity.Player target, IArena arena, Function<org.bukkit.entity.Player, String> title, Function<org.bukkit.entity.Player, String> subtitle) Called when a spectator enters the first person spectating system.SpectatorFirstPersonLeaveEvent
(org.bukkit.entity.Player spectator, IArena arena, Function<org.bukkit.entity.Player, String> title, Function<org.bukkit.entity.Player, String> subtitle) SpectatorTeleportToPlayerEvent
(@NotNull org.bukkit.entity.Player spectator, @NotNull org.bukkit.entity.Player target, IArena arena) Called when the spectator uses the player selector to teleport and spectate the selected player. -
Uses of IArena in com.andrei1058.bedwars.api.events.team
ModifierConstructorDescriptionTeamEliminatedEvent
(IArena arena, ITeam team) Called when all player on a team get killed and Bed is broken. -
Uses of IArena in com.andrei1058.bedwars.api.events.upgrades
-
Uses of IArena in com.andrei1058.bedwars.api.server
Modifier and TypeMethodDescriptionabstract void
Unload the world.abstract void
Load the world.void
RestoreAdapter.onLobbyRemoval
(@NotNull IArena a) Remove lobby blocks.abstract void
Restore the world.abstract void
VersionSupport.placeLadder
(org.bukkit.block.Block b, int x, int y, int z, IArena a, int ladderdata) abstract void
VersionSupport.placeTowerBlocks
(org.bukkit.block.Block b, IArena a, TeamColor color, int x, int y, int z) abstract void
VersionSupport.sendPlayerSpawnPackets
(org.bukkit.entity.Player player, IArena arena) This will send the player spawn packet after a player re-spawn.abstract void
VersionSupport.setCollide
(org.bukkit.entity.Player p, IArena a, boolean value) Disable collisions in 1.9+abstract void
VersionSupport.spawnShop
(org.bukkit.Location loc, String name1, List<org.bukkit.entity.Player> players, IArena arena) Spawn shop NPC -
Uses of IArena in com.andrei1058.bedwars.api.sidebar
Modifier and TypeMethodDescription@Nullable IArena
ISidebar.getArena()
Coincides with the arena where the player is on.Modifier and TypeMethodDescriptionvoid
ISidebarService.giveSidebar
(@NotNull org.bukkit.entity.Player player, @Nullable IArena arena, boolean delay) Send player scoreboard based on conditions.void
ISidebarService.refreshPlaceholders
(IArena arena) Refresh placeholders for sidebars in a given arena;void
Set sidebar content. -
Uses of IArena in com.andrei1058.bedwars.api.tasks
-
Uses of IArena in com.andrei1058.bedwars.api.util
Modifier and TypeMethodDescriptionboolean
BlastProtectionUtil.isProtected
(@NotNull IArena arena, org.bukkit.Location pov, @NotNull org.bukkit.block.Block block, double step) Check if block is protected by blast-proof glass or an unbreakable block from a point of view