Class ZentrixNetherPortalEvent
java.lang.Object
org.bukkit.event.Event
dev.itsharshxd.zentrix.api.events.ZentrixEvent
dev.itsharshxd.zentrix.api.events.ZentrixGameEvent
dev.itsharshxd.zentrix.api.events.nether.ZentrixNetherPortalEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public final class ZentrixNetherPortalEvent
extends ZentrixGameEvent
implements org.bukkit.event.Cancellable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionZentrixNetherPortalEvent(@NotNull ZentrixGame game, @NotNull org.bukkit.entity.Player player, @NotNull ZentrixNetherPortalEvent.Direction direction, @NotNull org.bukkit.Location destination) -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.Location@NotNull ZentrixNetherPortalEvent.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
-
ZentrixNetherPortalEvent
public ZentrixNetherPortalEvent(@NotNull @NotNull ZentrixGame game, @NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull ZentrixNetherPortalEvent.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()
-