Uses of Interface
com.andrei1058.bedwars.api.arena.team.ITeam
Packages that use ITeam
Package
Description
-
Uses of ITeam in com.andrei1058.bedwars.api.arena
Methods in com.andrei1058.bedwars.api.arena that return ITeamModifier and TypeMethodDescription@Nullable ITeamIArena.getBedsTeam(org.bukkit.Location location) Get owner team of a bed based on location.Get the team where the player has played in current match.IArena.getPlayerTeam(String playerName) Deprecated.Get a team by nameIArena.getTeam(org.bukkit.entity.Player player) Get the player's team.@Nullable ITeamIArena.getWinner()Provides the winner team.Methods in com.andrei1058.bedwars.api.arena that return types with arguments of type ITeam -
Uses of ITeam in com.andrei1058.bedwars.api.arena.generator
Methods in com.andrei1058.bedwars.api.arena.generator that return ITeam -
Uses of ITeam in com.andrei1058.bedwars.api.entity
Methods in com.andrei1058.bedwars.api.entity that return ITeamConstructors in com.andrei1058.bedwars.api.entity with parameters of type ITeamModifierConstructorDescriptionDespawnable(org.bukkit.entity.LivingEntity e, ITeam team, int despawn, String namePath, PlayerKillEvent.PlayerKillCause deathFinalCause, PlayerKillEvent.PlayerKillCause deathRegularCause) -
Uses of ITeam in com.andrei1058.bedwars.api.events.gameplay
Methods in com.andrei1058.bedwars.api.events.gameplay that return ITeamModifier and TypeMethodDescriptionTeamAssignEvent.getTeam()Get the teamGameEndEvent.getTeamWinner()Get the winner teamConstructors in com.andrei1058.bedwars.api.events.gameplay with parameters of type ITeamModifierConstructorDescriptionGameEndEvent(IArena arena, List<UUID> winners, List<UUID> losers, ITeam teamWinner, List<UUID> aliveWinners) Triggered when the game ends.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 ITeam in com.andrei1058.bedwars.api.events.player
Methods in com.andrei1058.bedwars.api.events.player that return ITeamModifier and TypeMethodDescriptionPlayerKillEvent.getKillerTeam()PlayerBedBreakEvent.getPlayerTeam()Get the player team.PlayerBedBugSpawnEvent.getPlayerTeam()PlayerDreamDefenderSpawnEvent.getPlayerTeam()PlayerBaseEnterEvent.getTeam()Get the team owing the entered basePlayerBaseLeaveEvent.getTeam()Get the team owing the exited basePlayerFirstSpawnEvent.getTeam()Get the player's teamPlayerInvisibilityPotionEvent.getTeam()PlayerReSpawnEvent.getTeam()Get the player's teamPlayerBedBreakEvent.getVictimTeam()Get the team who got the bed destroyed.PlayerKillEvent.getVictimTeam()Methods in com.andrei1058.bedwars.api.events.player with parameters of type ITeamModifier and TypeMethodDescriptionvoidPlayerKillEvent.setKillerTeam(ITeam killerTeam) voidPlayerKillEvent.setVictimTeam(ITeam victimTeam) Constructors in com.andrei1058.bedwars.api.events.player with parameters of type ITeamModifierConstructorDescriptionPlayerBaseEnterEvent(org.bukkit.entity.Player p, ITeam team) Called when a player enters a team base.PlayerBaseLeaveEvent(org.bukkit.entity.Player p, ITeam team) Called when a player leaves a team base.PlayerBedBreakEvent(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 islandPlayerInvisibilityPotionEvent(PlayerInvisibilityPotionEvent.Type type, ITeam team, org.bukkit.entity.Player player, IArena arena) This event is called when invisibility potions are managed by Bed-Wars.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) 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 ITeam in com.andrei1058.bedwars.api.events.team
Methods in com.andrei1058.bedwars.api.events.team that return ITeamConstructors in com.andrei1058.bedwars.api.events.team with parameters of type ITeamModifierConstructorDescriptionTeamEliminatedEvent(IArena arena, ITeam team) Called when all player on a team get killed and Bed is broken. -
Uses of ITeam in com.andrei1058.bedwars.api.events.upgrades
Methods in com.andrei1058.bedwars.api.events.upgrades that return ITeamConstructors in com.andrei1058.bedwars.api.events.upgrades with parameters of type ITeamModifierConstructorDescriptionUpgradeBuyEvent(TeamUpgrade teamUpgrade, org.bukkit.entity.Player player, ITeam team) Called when a Team Upgrade is bought -
Uses of ITeam in com.andrei1058.bedwars.api.server
Methods in com.andrei1058.bedwars.api.server with parameters of type ITeamModifier and TypeMethodDescriptionabstract voidColor a bed 1.12+abstract org.bukkit.inventory.ItemStackVersionSupport.colourItem(org.bukkit.inventory.ItemStack itemStack, ITeam bedWarsTeam) Color an item if possible with the team's colorabstract voidVersionSupport.spawnDragon(org.bukkit.Location l, ITeam team) Spawn ender dragonabstract voidVersionSupport.spawnIronGolem(org.bukkit.Location loc, ITeam team, double speed, double health, int despawn) Spawn a iron-golem for a teamabstract voidVersionSupport.spawnSilverfish(org.bukkit.Location loc, ITeam team, double speed, double health, int despawn, double damage) Spawn silverfish for a team -
Uses of ITeam in com.andrei1058.bedwars.api.upgrades
Methods in com.andrei1058.bedwars.api.upgrades with parameters of type ITeamModifier and TypeMethodDescriptionorg.bukkit.inventory.ItemStackMenuContent.getDisplayItem(org.bukkit.entity.Player player, ITeam team) Item that represent the item in the GUI.default voidDeprecated.voidApply action to team.voidMenuContent.onClick(org.bukkit.entity.Player player, org.bukkit.event.inventory.ClickType clickType, ITeam team) Manage what to do on click.voidManage what happens on enters .voidWhat to do on trigger.