Class ZentrixEndPortalEvent
java.lang.Object
org.bukkit.event.Event
dev.itsharshxd.zentrix.api.events.ZentrixEvent
dev.itsharshxd.zentrix.api.events.ZentrixGameEvent
dev.itsharshxd.zentrix.api.events.end.ZentrixEndPortalEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public final class ZentrixEndPortalEvent
extends ZentrixGameEvent
implements org.bukkit.event.Cancellable
Fired for End portal travel inside one runtime match, before the player is moved.
ZentrixEndPortalEvent.Direction.ENTER_END destinations are the runtime End's standard arrival
platform. ZentrixEndPortalEvent.Direction.EXIT_END destinations are the leaving player's resolved
match-owned respawn point, or the paired game world's safe spawn.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionZentrixEndPortalEvent(@NotNull ZentrixGame game, @NotNull org.bukkit.entity.Player player, @NotNull ZentrixEndPortalEvent.Direction direction, @NotNull org.bukkit.Location destination) -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.Location@NotNull ZentrixEndPortalEvent.Directionstatic @NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListGets the handler list for this event.@NotNull org.bukkit.entity.PlayerbooleanvoidsetCancelled(boolean cancelled) voidsetDestination(@NotNull org.bukkit.Location destination) Methods inherited from class dev.itsharshxd.zentrix.api.events.ZentrixGameEvent
getArenaName, getGame, getGameId, getGameState, getGameTypeName, getPlayerCount, getRuntimeId, getSourceArenaNameMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
ZentrixEndPortalEvent
public ZentrixEndPortalEvent(@NotNull @NotNull ZentrixGame game, @NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull ZentrixEndPortalEvent.Direction direction, @NotNull @NotNull org.bukkit.Location destination)
-
-
Method Details
-
getPlayer
@NotNull public @NotNull org.bukkit.entity.Player getPlayer() -
getDirection
-
getDestination
@NotNull public @NotNull org.bukkit.Location getDestination() -
setDestination
public void setDestination(@NotNull @NotNull org.bukkit.Location destination) -
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:ZentrixGameEventGets the handler list for this event.- Overrides:
getHandlersin classZentrixGameEvent- Returns:
- The handler list
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-