Class SpectatorFirstPersonEnterEvent

java.lang.Object
org.bukkit.event.Event
com.andrei1058.bedwars.api.events.spectator.SpectatorFirstPersonEnterEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class SpectatorFirstPersonEnterEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
  • Constructor Details Link icon

    • SpectatorFirstPersonEnterEvent Link icon

      public SpectatorFirstPersonEnterEvent(@NotNull @NotNull org.bukkit.entity.Player spectator, @NotNull @NotNull org.bukkit.entity.Player target, IArena arena, Function<org.bukkit.entity.Player,String> title, Function<org.bukkit.entity.Player,String> subtitle)
      Called when a spectator enters the first person spectating system.
  • Method Details Link icon

    • getSpectator Link icon

      public org.bukkit.entity.Player getSpectator()
      Get the spectator
    • getArena Link icon

      public IArena getArena()
      Get the arena
    • getTarget Link icon

      public org.bukkit.entity.Player getTarget()
      Get the target player
    • isCancelled Link icon

      public boolean isCancelled()
      Check if it is cancelled
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled Link icon

      public void setCancelled(boolean cancelled)
      Change value
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getSubTitle Link icon

      public Function<org.bukkit.entity.Player,String> getSubTitle()
    • getTitle Link icon

      public Function<org.bukkit.entity.Player,String> getTitle()
      Get first person enter subtitle
    • setTitle Link icon

      public void setTitle(Function<org.bukkit.entity.Player,String> title)
      Get first person enter title
    • setSubTitle Link icon

      public void setSubTitle(Function<org.bukkit.entity.Player,String> subTitle)
      Set first person enter title and subtitle. Leave "" for empty msg
    • getStay Link icon

      public int getStay()
    • getFadeOut Link icon

      public int getFadeOut()
    • getFadeIn Link icon

      public int getFadeIn()
    • setStay Link icon

      public void setStay(int stay)
    • setFadeOut Link icon

      public void setFadeOut(int fadeOut)
    • setFadeIn Link icon

      public void setFadeIn(int fadeIn)
    • getHandlers Link icon

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList Link icon

      public static org.bukkit.event.HandlerList getHandlerList()