Uses of Interface
com.andrei1058.bedwars.api.arena.team.ITeam
Package
Description
-
Uses of ITeam in com.andrei1058.bedwars.api.arena
Modifier and TypeMethodDescription@Nullable ITeam
IArena.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 ITeam
IArena.getWinner()
Provides the winner team. -
Uses of ITeam in com.andrei1058.bedwars.api.arena.generator
-
Uses of ITeam in com.andrei1058.bedwars.api.entity
ModifierConstructorDescriptionDespawnable
(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
Modifier and TypeMethodDescriptionTeamAssignEvent.getTeam()
Get the teamGameEndEvent.getTeamWinner()
Get the winner teamModifierConstructorDescriptionGameEndEvent
(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
Modifier 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()
Modifier and TypeMethodDescriptionvoid
PlayerKillEvent.setKillerTeam
(ITeam killerTeam) void
PlayerKillEvent.setVictimTeam
(ITeam victimTeam) ModifierConstructorDescriptionPlayerBaseEnterEvent
(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
ModifierConstructorDescriptionTeamEliminatedEvent
(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
ModifierConstructorDescriptionUpgradeBuyEvent
(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
Modifier and TypeMethodDescriptionabstract void
Color a bed 1.12+abstract org.bukkit.inventory.ItemStack
VersionSupport.colourItem
(org.bukkit.inventory.ItemStack itemStack, ITeam bedWarsTeam) Color an item if possible with the team's colorabstract void
VersionSupport.spawnDragon
(org.bukkit.Location l, ITeam team) Spawn ender dragonabstract void
VersionSupport.spawnIronGolem
(org.bukkit.Location loc, ITeam team, double speed, double health, int despawn) Spawn a iron-golem for a teamabstract void
VersionSupport.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
Modifier and TypeMethodDescriptionorg.bukkit.inventory.ItemStack
MenuContent.getDisplayItem
(org.bukkit.entity.Player player, ITeam team) Item that represent the item in the GUI.default void
Deprecated.void
Apply action to team.void
MenuContent.onClick
(org.bukkit.entity.Player player, org.bukkit.event.inventory.ClickType clickType, ITeam team) Manage what to do on click.void
Manage what happens on enters .void
What to do on trigger.