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
metadataHolderFields inherited from class org.bukkit.event.player.PlayerEvent
player -
Constructor Summary
ConstructorsConstructorDescriptionPlayerSpawnTeleportPreConditionEvent(@NotNull org.bukkit.entity.Player who, @NotNull org.bukkit.Location to) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListReturns theHandlerListfor this event type.@NotNull org.bukkit.LocationgetTo()booleanvoidsetCancelled(boolean cancelled) voidsetTo(@NotNull org.bukkit.Location to) Methods inherited from class net.mathias2246.buildmc.api.event.CustomPlayerEvent
getMetadata, putMetadata, removeMetadataMethods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
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:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()Description copied from class:CustomPlayerEventReturns theHandlerListfor this event type.Bukkit requires each concrete event class to define its own static
HandlerListinstance and to return it from this method. This is necessary for Bukkitâs event registration and dispatch system.- Specified by:
getHandlersin classCustomPlayerEvent- Returns:
- the handler list for this event (never
null)
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-