Uses of Enum
de.marcely.bedwars.api.game.spectator.SpectateReason
Packages that use SpectateReason
Package
Description
Contains classes that are related to the
Arena
.Events related to
Player
actions, or changes to player properties.Classes dedicated to players Spectating in MBedwars.
Classes used to manage other servers running MBedwars remotely.
-
Uses of SpectateReason in de.marcely.bedwars.api.arena
Methods in de.marcely.bedwars.api.arena with parameters of type SpectateReasonModifier and TypeMethodDescription@Nullable Spectator
Arena.addSpectator
(Player player, SpectateReason reason) Adds a player as a spectator. -
Uses of SpectateReason in de.marcely.bedwars.api.event.player
Methods in de.marcely.bedwars.api.event.player that return SpectateReasonModifier and TypeMethodDescriptionSpectatorJoinArenaEvent.getReason()
Returns the reason why he got into a spectator. -
Uses of SpectateReason in de.marcely.bedwars.api.game.spectator
Methods in de.marcely.bedwars.api.game.spectator that return SpectateReasonModifier and TypeMethodDescriptionSpectator.getReason()
Returns the reason or the cause of him being a spectator.static SpectateReason
Returns the enum constant of this type with the specified name.static SpectateReason[]
SpectateReason.values()
Returns an array containing the constants of this enum type, in the order they are declared. -
Uses of SpectateReason in de.marcely.bedwars.api.remote
Methods in de.marcely.bedwars.api.remote with parameters of type SpectateReasonModifier and TypeMethodDescriptiondefault void
RemoteArena.addSpectator
(RemotePlayer player, SpectateReason reason) Adds a spectator into the arena.default void
RemoteArena.addSpectator
(RemotePlayer player, SpectateReason reason, boolean ignoreArenaStatus) Adds a spectator into the arena.void
RemoteArena.addSpectator
(RemotePlayer player, SpectateReason reason, boolean ignoreArenaStatus, @Nullable Consumer<RemoteSpectatorAddResult> callback) Adds a spectator into the arena.default void
RemoteArena.addSpectator
(RemotePlayer player, SpectateReason reason, @Nullable Consumer<RemoteSpectatorAddResult> callback) Adds a spectator into the arena.void
RemoteAPI.addSpectatorToArena
(RemotePlayer player, RemoteArena arena, SpectateReason reason, boolean ignoreArenaState, @Nullable Consumer<RemoteSpectatorAddResult> callback) Makes a player enter an arena as a spectator.