Class PlayerSpawnTeleportPreConditionEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
net.mathias2246.buildmc.api.event.CustomPlayerEvent
net.mathias2246.buildmc.api.event.player.PlayerSpawnTeleportPreConditionEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class PlayerSpawnTeleportPreConditionEvent extends CustomPlayerEvent implements org.bukkit.event.Cancellable
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Field Summary

    Fields inherited from class net.mathias2246.buildmc.api.event.CustomPlayerEvent

    metadataHolder

    Fields inherited from class org.bukkit.event.player.PlayerEvent

    player
  • Constructor Summary

    Constructors
    Constructor
    Description
    PlayerSpawnTeleportPreConditionEvent(@NotNull org.bukkit.entity.Player who, @NotNull org.bukkit.Location to)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
    Returns the HandlerList for this event type.
    @NotNull org.bukkit.Location
     
    boolean
     
    void
    setCancelled(boolean cancelled)
     
    void
    setTo(@NotNull org.bukkit.Location to)
     

    Methods inherited from class net.mathias2246.buildmc.api.event.CustomPlayerEvent

    getMetadata, putMetadata, removeMetadata

    Methods inherited from class org.bukkit.event.player.PlayerEvent

    getPlayer

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PlayerSpawnTeleportPreConditionEvent

      public PlayerSpawnTeleportPreConditionEvent(@NotNull @NotNull org.bukkit.entity.Player who, @NotNull @NotNull org.bukkit.Location to)
  • Method Details

    • setTo

      public void setTo(@NotNull @NotNull org.bukkit.Location to)
    • getTo

      @NotNull public @NotNull org.bukkit.Location getTo()
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

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

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Description copied from class: CustomPlayerEvent
      Returns the HandlerList for this event type.

      Bukkit requires each concrete event class to define its own static HandlerList instance and to return it from this method. This is necessary for Bukkit’s event registration and dispatch system.

      Specified by:
      getHandlers in class CustomPlayerEvent
      Returns:
      the handler list for this event (never null)
    • getHandlerList

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