Uses of Interface
de.marcely.bedwars.api.game.spectator.Spectator
Package
Description
-
Uses of Spectator in de.marcely.bedwars.api
Modifier and TypeMethodDescription@Nullable Spectator
GameAPI.getSpectatorByPlayer
(Player player) Tries to find the corresponding Spectator instance given by its player.Modifier and TypeMethodDescriptionGameAPI.getSpectators()
Returns the spectator data of every player who is currently spectating. -
Uses of Spectator in de.marcely.bedwars.api.arena
Modifier and TypeMethodDescriptiondefault @Nullable Spectator
Arena.addSpectator
(Player player) @Nullable Spectator
Arena.addSpectator
(Player player, SpectateReason reason) Adds a player as a spectator.@Nullable Spectator
Arena.getSpectateData
(Player player) Looks and returns the spectator data of the player.Modifier and TypeMethodDescriptionArena.getEverySpectatorData()
Returns the spectator data of every player who's currently spectating this arena -
Uses of Spectator in de.marcely.bedwars.api.event.player
Modifier and TypeMethodDescriptionSpectatorItemUseEvent.getSpectator()
Returns the spectator who is about to use the item.SpectatorJoinArenaEvent.getSpectator()
Returns the spectator who's trying to join.SpectatorQuitArenaEvent.getSpectator()
Returns the spectator.ModifierConstructorDescriptionSpectatorItemUseEvent
(Spectator spectator, SpectatorItem item) SpectatorJoinArenaEvent
(Spectator spectator) SpectatorQuitArenaEvent
(Spectator spectator, KickSpectatorReason reason) -
Uses of Spectator in de.marcely.bedwars.api.game.spectator
Modifier and TypeMethodDescriptionabstract void
SpectatorItemHandler.handleUse
(Spectator spectator, SpectatorItem item) Handles the execution of the item.abstract boolean
SpectatorItemHandler.isVisible
(Spectator spectator, SpectatorItem item) Whether or not the item shall be shown and usable at the given circumstances.