Uses of Enum
de.marcely.bedwars.api.arena.Team
Packages that use Team
Package
Description
The root package of the MBedwars API
Contains classes that are related to the
Arena.Events related to an
Arena.Events related to
Player actions, or changes to player properties.Classes relevant to each
ShopProduct in the in game shop.Classes relevant to the in game team upgrade shop.
Classes used to manage other servers running MBedwars remotely.
-
Uses of Team in de.marcely.bedwars.api
Methods in de.marcely.bedwars.api with parameters of type TeamModifier and TypeMethodDescriptionbooleanGameAPI.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
Fields in de.marcely.bedwars.api.arena declared as TeamModifier and TypeFieldDescriptionstatic Team[]Team.VALUESA list of all possible colors that exist in the game.Methods in de.marcely.bedwars.api.arena that return TeamModifier and TypeMethodDescriptionstatic @Nullable TeamLooks through all teams and checks which team fits the best to the given name.@Nullable TeamArena.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 TeamArena.getTeamByBaseLocation(XYZ xyz) Tries to fetch the team of a location that's inside a base.@Nullable TeamArena.getTeamByBaseLocation(Location loc) Tries to fetch the team of a location that's inside a base.@Nullable TeamArena.getTeamByBedBlock(IntXYZ loc) Returns the team that owns the bed part at the given location.@Nullable TeamArena.getTeamByBedBlock(Block block) Returns the team that owns the bed part at the given location.static TeamReturns 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.Methods in de.marcely.bedwars.api.arena that return types with arguments of type TeamModifier 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.Methods in de.marcely.bedwars.api.arena with parameters of type TeamModifier and TypeMethodDescriptiondefault @Nullable AddPlayerIssueSame asArena.addPlayer(Player, Team, AddPlayerCause), passesAddPlayerCause.PLUGINas the reason for the player joining the arena.@Nullable AddPlayerIssueArena.addPlayer(Player player, @Nullable Team team, AddPlayerCause cause) Tries to add the player to the arena.voidArena.addTeamEffect(Team team, boolean baseOnly, PotionEffectType potionEffectType, int amplifier) Adds an effect for all the players in a certain teamvoidArena.addTeamEnchantment(Team team, TeamEnchantment teamEnchantment) Adds a team enchantment to a team, and applies it to team playersstatic BedDestructionInfoConstruct a new instance of this data container.voidArena.destroyBed(Team team) Tries to break/destroy the bed of a team.voidArena.destroyBedBlocks(Team team) Tries to break/destroy the bed blocks of a team, but not change the internal state.default @Nullable ArenaBedBreakEventArena.destroyBedNaturally(Team team, @Nullable Player player) Will destroy the bed as if a player actually broke it ingame.booleanForcefully 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 InstantArena.getBedDestructionTime(Team team) Get the time when the bed of a team has been destroyed.@Nullable HologramEntityArena.getBedHologram(Team team) Gets the hologram that is optionally being spawned above the team's bed.@Nullable XYZDArena.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.voidArena.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 InventoryArena.getTeamPrivateInventory(Team team) Obtain a teams private inventory using this method.@Nullable XYZYPArena.getTeamSpawn(Team team) Gets the spawn point of a team.@Nullable UpgradeStateArena.getUpgradeState(Team team) Returns the UpgradeState of a specified teambooleanArena.isBedDestroyed(Team team) Returns whether the bed of a team has been destroyed.booleanArena.isTeamEnabled(Team team) Returns whether or not a team is enabled.booleanArena.moveToTeamDuringLobby(Player player, Team team) Simulates as if the player would manually want to change the team.voidTries to place the bed of a team.voidArena.placeBedBlocks(Team team) Tries to place the bed blocks of a team, but not change the internal state.booleanArena.removeTeamEffect(Team team, PotionEffectType potionEffectType) Removes an effect from a teambooleanArena.removeTeamEnchantment(Team team, TeamEnchantment teamEnchantment) Removes a team enchantment from a team, and applies it to team playersbooleanArena.setBedLocation(Team team, @Nullable XYZD loc) Sets the bed location of a team.voidArena.setPlayerTeam(Player player, @Nullable Team team) Change the team of a player.voidBedDestructionInfo.setTargetTeam(Team team) Set the team of whom the bed shall be destroyed.voidSet the team to which the player belongs to.booleanArena.setTeamEnabled(Team team, boolean enabled) Enables or disables a team in this arena.booleanArena.setTeamSpawn(Team team, @Nullable XYZYP loc) Set the spawn point of a team.Constructors in de.marcely.bedwars.api.arena with parameters of type TeamModifierConstructorDescriptionQuitPlayerMemory(UUID uniqueId, String username, Team team, boolean rejoinPermitted, Instant lastJoinTime, Instant quitTime, Duration playTime, boolean bypassTraps, Inventory playerPrivateInventory, @Nullable BukkitTask soloRejoinTask, int shopResourcesSpentAmount) QuitPlayerMemory(OfflinePlayer player, Team team, boolean rejoinPermitted, 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
Methods in de.marcely.bedwars.api.event.arena that return TeamModifier and TypeMethodDescriptionArenaBedBreakEvent.getTeam()Returns the team who own the bed.TeamEliminateEvent.getTeam()Returns the team that has been eliminated.@Nullable TeamRoundEndEvent.getWinnerTeam()Returns the team that won the round.@Nullable TeamArenaWinningTeamDetermineEvent.getWinningTeam()Returns the winning team of the arena.Methods in de.marcely.bedwars.api.event.arena with parameters of type TeamModifier and TypeMethodDescriptionvoidArenaWinningTeamDetermineEvent.setWinningTeam(Team team) Sets the winning team of the arena.Constructors in de.marcely.bedwars.api.event.arena with parameters of type TeamModifierConstructorDescriptionArenaBedBreakEvent(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) ArenaWinningTeamDetermineEvent(Arena arena, @Nullable Team winningTeam) 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) Constructor parameters in de.marcely.bedwars.api.event.arena with type arguments of type TeamModifierConstructorDescriptionRoundEndEvent(Arena arena, @Nullable Team winnerTeam, Map<Player, Team> onlinePlayers, Collection<QuitPlayerMemory> offlinePlayers) -
Uses of Team in de.marcely.bedwars.api.event.player
Methods in de.marcely.bedwars.api.event.player that return TeamModifier and TypeMethodDescription@Nullable TeamPlayerTeamChangeEvent.getNewTeam()Returns the new team to which the player has been moved to.@Nullable TeamPlayerTeamChangeEvent.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 TeamPlayerJoinArenaEvent.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 TeamPlayerQuitArenaEvent.getTeam()Returns the team in which he was before he left the arena.@Nullable TeamPlayerShopProductGivingDetermineEvent.getTeam()Get the team the player is in.PlayerTriggerUpgradeEvent.getTeam()Returns the team in which the upgrade or trap belongs to.Methods in de.marcely.bedwars.api.event.player with parameters of type TeamModifier and TypeMethodDescriptionvoidSet the team to which the player shall automatically get added to.Constructors in de.marcely.bedwars.api.event.player with parameters of type TeamModifierConstructorDescriptionPlayerAddBedEvent(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, Supplier<Inventory> inventory, Block chestBlock, PlayerOpenArenaChestEvent.ChestType chestType, PlayerOpenArenaChestEvent.OpenPurpose purpose) PlayerOpenArenaChestEvent(Player player, Arena arena, Team team, Inventory inventory, Block chestBlock, PlayerOpenArenaChestEvent.ChestType chestType, PlayerOpenArenaChestEvent.OpenPurpose purpose) 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, boolean hasLeaveMessage) 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(@Nullable Player player, Arena arena, Team team, UpgradeLevel upgradeLevel) 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
Methods in de.marcely.bedwars.api.game.shop.product with parameters of type TeamModifier 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.voidGives the product to a player.voidShopProduct.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
Methods in de.marcely.bedwars.api.game.upgrade that return TeamMethods in de.marcely.bedwars.api.game.upgrade with parameters of type TeamModifier and TypeMethodDescriptionintUpgradeLevel.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.voidUpgradeState.triggerTrap(Player player, Team baseTeam, boolean force) Triggers a trap at a certain base. -
Uses of Team in de.marcely.bedwars.api.remote
Methods in de.marcely.bedwars.api.remote that return TeamModifier and TypeMethodDescription@Nullable TeamAddRemotePlayerInfo.getTargetTeam()Returns the target team that has been specified usingAddRemotePlayerInfo.getTargetTeam().Methods in de.marcely.bedwars.api.remote that return types with arguments of type TeamModifier and TypeMethodDescriptionRemoteArena.getEnabledTeams()Returns every team that has been enabled for this arena.Methods in de.marcely.bedwars.api.remote with parameters of type TeamModifier and TypeMethodDescriptiondefault voidRemoteArena.addPlayer(RemotePlayer player, @Nullable Team team) Adds a player into the arena.default voidRemoteArena.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.world.hologram.controller
Methods in de.marcely.bedwars.api.world.hologram.controller that return TeamModifier and TypeMethodDescriptionTeamSelectorController.getTeam()Get the team that will be selected when clicked on.Methods in de.marcely.bedwars.api.world.hologram.controller with parameters of type Team