Uses of Enum
de.marcely.bedwars.api.arena.Team
Package
Description
-
Uses of Team in de.marcely.bedwars.api
Modifier and TypeMethodDescriptionboolean
GameAPI.openUpgradeShop
(Player player, Arena arena, Team team, UpgradeShopOpenCause cause) Opens the upgrade shop for a player. -
Uses of Team in de.marcely.bedwars.api.arena
Modifier and TypeFieldDescriptionstatic Team[]
Team.VALUES
A list of all possible colors that exist in the game.Modifier and TypeMethodDescriptionstatic @Nullable Team
Looks through all teams and checks which team fits the best to the given name.@Nullable Team
Arena.getPlayerTeam
(Player player) Returns the team of a player.BedDestructionInfo.getTargetTeam()
Get the team of whom the bed shall be destroyed.QuitPlayerMemory.getTeam()
Returns the team to which he belongs to.@Nullable Team
Arena.getTeamByBaseLocation
(XYZ xyz) Tries to fetch the team of a location that's inside a base.@Nullable Team
Arena.getTeamByBaseLocation
(Location loc) Tries to fetch the team of a location that's inside a base.@Nullable Team
Arena.getTeamByBedBlock
(IntXYZ loc) Returns the team that owns the bed part at the given location.@Nullable Team
Arena.getTeamByBedBlock
(Block block) Returns the team that owns the bed part at the given location.static Team
Returns the enum constant of this type with the specified name.static Team[]
Team.values()
Returns an array containing the constants of this enum type, in the order they are declared.Modifier and TypeMethodDescriptionArena.getAliveTeams()
Returns a List of all teams that still have a bed.Arena.getAliveTeams
(Player... ignorePlayers) Returns a List of all teams that have at least one player.Arena.getEnabledTeams()
Returns every team that has been enabled for this arena.Arena.getTeamsWithPlayers()
Returns a List of all teams that have at least one player.Arena.getTeamsWithPlayers
(Player... ignorePlayers) Returns a List of all teams that have at least one player.Modifier and TypeMethodDescriptiondefault @Nullable AddPlayerIssue
Same asArena.addPlayer(Player, Team, AddPlayerCause)
, passesAddPlayerCause.PLUGIN
as the reason for the player joining the arena.@Nullable AddPlayerIssue
Arena.addPlayer
(Player player, @Nullable Team team, AddPlayerCause cause) Tries to add the player to the arena.void
Arena.addTeamEffect
(Team team, boolean baseOnly, PotionEffectType potionEffectType, int amplifier) Adds an effect for all the players in a certain teamvoid
Arena.addTeamEnchantment
(Team team, TeamEnchantment teamEnchantment) Adds a team enchantment to a team, and applies it to team playersstatic BedDestructionInfo
Construct a new instance of this data container.void
Arena.destroyBed
(Team team) Tries to break/destroy the bed of a team.void
Arena.destroyBedBlocks
(Team team) Tries to break/destroy the bed blocks of a team, but not change the internal state.default @Nullable ArenaBedBreakEvent
Arena.destroyBedNaturally
(Team team, @Nullable Player player) Will destroy the bed as if a player actually broke it ingame.boolean
Forcefully stop the match right now.Arena.formatItemStack
(ItemStack itemStack, @Nullable Player player, Team team) Returns the same ItemStack but possibly dyed or enchanted depending on team upgrades, and previous player purchases.@Nullable Instant
Arena.getBedDestructionTime
(Team team) Get the time when the bed of a team has been destroyed in ms.@Nullable HologramEntity
Arena.getBedHologram
(Team team) Gets the hologram that is optionally being spawned above the team's bed.@Nullable XYZD
Arena.getBedLocation
(Team team) Returns the location the team's bed location.Block[]
Arena.getBedParts
(Team team) Returns the blocks of all the team's bed parts.void
Arena.getBedPartsAsync
(Team team, Consumer<Block[]> callback) Returns the blocks of all the team's bed parts.Arena.getItemsGivenOnSpawn
(Player player, Team team, boolean firstSpawn, boolean includeKeepOnDeath) Returns all the ItemStacks that will be given to a player when they spawn with all dyes already applied, and enchantments added.Arena.getPlayersInTeam
(@Nullable Team team) Returns a List of all players that are in a specific team.Arena.getTeamBaseOnlyEffects
(Team team) Returns effects applied to a team around their baseArena.getTeamEnchantments
(Team team) Returns all team enchantments applied to a teamArena.getTeamPermanentEffects
(Team team) Returns all effects applied to a team everywhere@Nullable Inventory
Arena.getTeamPrivateInventory
(Team team) Obtain a teams private inventory using this method.@Nullable XYZYP
Arena.getTeamSpawn
(Team team) Gets the spawn point of a team.@Nullable UpgradeState
Arena.getUpgradeState
(Team team) Returns the UpgradeState of a specified teamboolean
Arena.isBedDestroyed
(Team team) Returns whether the bed of a team has been destroyed.boolean
Arena.isTeamEnabled
(Team team) Returns whether or not a team is enabled.boolean
Arena.moveToTeamDuringLobby
(Player player, Team team) Simulates as if the player would manually want to change the team.void
Tries to place the bed of a team.void
Arena.placeBedBlocks
(Team team) Tries to place the bed blocks of a team, but not change the internal state.boolean
Arena.removeTeamEffect
(Team team, PotionEffectType potionEffectType) Removes an effect from a teamboolean
Arena.removeTeamEnchantment
(Team team, TeamEnchantment teamEnchantment) Removes a team enchantment from a team, and applies it to team playersboolean
Arena.setBedLocation
(Team team, @Nullable XYZD loc) Sets the bed location of a team.void
Arena.setPlayerTeam
(Player player, @Nullable Team team) Change the team of a player.void
BedDestructionInfo.setTargetTeam
(Team team) Set the team of whom the bed shall be destroyed.void
Set the team to which the player belongs to.boolean
Arena.setTeamEnabled
(Team team, boolean enabled) Enables or disables a team in this arena.boolean
Arena.setTeamSpawn
(Team team, @Nullable XYZYP loc) Set the spawn point of a team.ModifierConstructorDescriptionQuitPlayerMemory
(UUID uniqueId, String username, Team team, Instant lastJoinTime, Instant quitTime, Duration playTime, boolean bypassTraps, Inventory playerPrivateInventory, @Nullable BukkitTask soloRejoinTask, int shopResourcesSpentAmount) QuitPlayerMemory
(OfflinePlayer player, Team team, Instant lastJoinTime, Instant quitTime, Duration playTime, boolean bypassTraps, Inventory playerPrivateInventory, @Nullable BukkitTask soloRejoinTask, int shopResourcesSpentAmount) -
Uses of Team in de.marcely.bedwars.api.event.arena
Modifier and TypeMethodDescriptionArenaBedBreakEvent.getTeam()
Returns the team who own the bed.TeamEliminateEvent.getTeam()
Returns the team that has been eliminated.@Nullable Team
RoundEndEvent.getWinnerTeam()
Returns the team that won the round.ModifierConstructorDescriptionArenaBedBreakEvent
(Arena arena, @Nullable Player player, String altDisplayName, Team team, Location bedLocation, BedDestructionInfo.Cause cause, ArenaBedBreakEvent.Result result, boolean playSound, boolean sendTitle, boolean sendMessage, Function<Player, Message> messageFunction) RoundEndEvent
(Arena arena, @Nullable Team winnerTeam, Collection<Player> onlineWinners, Collection<QuitPlayerMemory> offlineWinners, Collection<Player> onlineLosers, Collection<QuitPlayerMemory> offlineLosers) RoundEndEvent
(Arena arena, @Nullable Team winnerTeam, Map<Player, Team> onlinePlayers, Collection<QuitPlayerMemory> offlinePlayers) TeamEliminateEvent
(Arena arena, Team team, Player causingPlayer, Player lastPlayer, boolean causesEnd) ModifierConstructorDescriptionRoundEndEvent
(Arena arena, @Nullable Team winnerTeam, Map<Player, Team> onlinePlayers, Collection<QuitPlayerMemory> offlinePlayers) -
Uses of Team in de.marcely.bedwars.api.event.player
Modifier and TypeMethodDescription@Nullable Team
PlayerTeamChangeEvent.getNewTeam()
Returns the new team to which the player has been moved to.@Nullable Team
PlayerTeamChangeEvent.getOldTeam()
Returns the previous team of the player.PlayerAddBedEvent.getTeam()
Returns the team of the bed.PlayerBuyUpgradeEvent.getTeam()
Returns the team in which the player bought the upgrade for.@Nullable Team
PlayerJoinArenaEvent.getTeam()
Returns the team to which the player is automatically getting added to.PlayerOpenArenaChestEvent.getTeam()
Returns the player's TeamPlayerOpenUpgradeShopEvent.getTeam()
Returns the arena in which the shop was opened.@Nullable Team
PlayerQuitArenaEvent.getTeam()
Returns the team in which he was before he left the arena.@Nullable Team
PlayerShopProductGivingDetermineEvent.getTeam()
Get the team the player is in.PlayerTriggerUpgradeEvent.getTeam()
Returns the team in which the upgrade or trap belongs to.Modifier and TypeMethodDescriptionvoid
Set the team to which the player shall automatically get added to.ModifierConstructorDescriptionPlayerAddBedEvent
(Player player, Arena arena, Team team, Location location) PlayerBuyUpgradeEvent
(Player player, Arena arena, Team team, UpgradeLevel level, List<PlayerBuyUpgradeEvent.Problem> problems, boolean broadcastingMessage, boolean broadcastingSound, boolean doingUpgrade, boolean takePayments) PlayerJoinArenaEvent
(Player player, Arena arena, AddPlayerCause cause, Team team, Set<AddPlayerIssue> issues) PlayerOpenArenaChestEvent
(Player player, Arena arena, Team team, Inventory inventory, Block chestBlock, boolean teamChest) PlayerOpenUpgradeShopEvent
(Player player, @Nullable Arena arena, Team team, UpgradeShopLayout layout, UpgradeShopOpenCause cause, @Nullable Object layoutData) PlayerQuitArenaEvent
(Player player, Arena arena, KickReason reason, @Nullable Team team, @Nullable QuitPlayerMemory memory) PlayerShopProductGivingDetermineEvent
(Player player, @Nullable Team team, @Nullable Arena arena, int multiplier, ShopProduct product, ItemStack[] givingItems, PlayerShopProductGivingDetermineEvent.ExecutableCommand[] executingCommands, @Nullable CustomDropTypeHandler callingDropTypeHandler) PlayerTeamChangeEvent
(Player player, Arena arena, Team oldTeam, Team newTeam) PlayerTriggerUpgradeEvent
(Player player, Arena arena, Team team, UpgradeLevel upgradeLevel, boolean broadcastingMessage, boolean broadcastingTitle, boolean broadcastingSound, boolean takingFromQueue) -
Uses of Team in de.marcely.bedwars.api.game.shop.product
Modifier and TypeMethodDescriptionItemShopProduct.getGivingItems
(Player player, @Nullable Team team, @Nullable Arena arena, int multiplier) Returns an array of all the items that are being given on a purchase.ShopProduct.getGivingItems
(Player player, @Nullable Team team, @Nullable Arena arena, int multiplier) Gets the ItemStacks the player will actually receive.void
Gives the product to a player.void
ShopProduct.give
(Player player, @Nullable Team team, @Nullable Arena arena, int multiplier, @Nullable Integer targetInvSlot) Gives the product to a player. -
Uses of Team in de.marcely.bedwars.api.game.upgrade
Modifier and TypeMethodDescriptionint
UpgradeLevel.getPriceAmount
(Arena arena, Team team) Returns the actual price that a team has to pay for this upgrade.Returns the current state of a player that indicates whether he is able to upgrade at this given moment.void
UpgradeState.triggerTrap
(Player player, Team baseTeam, boolean force) Triggers a trap at a certain base. -
Uses of Team in de.marcely.bedwars.api.remote
Modifier and TypeMethodDescription@Nullable Team
AddRemotePlayerInfo.getTargetTeam()
Returns the target team that has been specified usingAddRemotePlayerInfo.getTargetTeam()
.Modifier and TypeMethodDescriptionRemoteArena.getEnabledTeams()
Returns every team that has been enabled for this arena.Modifier and TypeMethodDescriptiondefault void
RemoteArena.addPlayer
(RemotePlayer player, @Nullable Team team) Adds a player into the arena.default void
RemoteArena.addPlayer
(RemotePlayer player, @Nullable Team team, @Nullable Consumer<RemotePlayerAddResult> callback) Adds a player into the arena.AddRemotePlayerInfo.setTargetTeam
(@Nullable Team targetTeam) Set the team which the player shall automatically enter when he joins the arena. -
Uses of Team in de.marcely.bedwars.api.unsafe
Modifier and TypeMethodDescriptionabstract @Nullable Team
BedwarsAPILayer.getTeamByName
(String name) Deprecated.