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

    • SpectatorFirstPersonEnterEvent

      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

    • getSpectator

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

      public IArena getArena()
      Get the arena
    • getTarget

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

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

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

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

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

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

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

      public int getStay()
    • getFadeOut

      public int getFadeOut()
    • getFadeIn

      public int getFadeIn()
    • setStay

      public void setStay(int stay)
    • setFadeOut

      public void setFadeOut(int fadeOut)
    • setFadeIn

      public void setFadeIn(int fadeIn)
    • getHandlers

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

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