Class OllivandersApparateByNameEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
net.pottercraft.ollivanders2.spell.events.ApparateEvent
net.pottercraft.ollivanders2.spell.events.OllivandersApparateByNameEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
An event thrown whenever a player apparates by location name
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player -
Constructor Summary
ConstructorsConstructorDescriptionOllivandersApparateByNameEvent(@NotNull org.bukkit.entity.Player player, org.bukkit.Location dest, String destName) Constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.LocationGet the destination being apparated toGet the name of the apparate destinationMethods inherited from class net.pottercraft.ollivanders2.spell.events.ApparateEvent
getHandlerList, getHandlers, isCancelled, setCancelledMethods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
OllivandersApparateByNameEvent
public OllivandersApparateByNameEvent(@NotNull @NotNull org.bukkit.entity.Player player, org.bukkit.Location dest, String destName) Constructor- Parameters:
player- the player apparatingdest- the destination being apparated todestName- the name of the destination being apparated to
-
-
Method Details
-
getDestinationName
Get the name of the apparate destination- Returns:
- the name of the destination being apparated to
-
getDestination
public org.bukkit.Location getDestination()Get the destination being apparated to- Returns:
- the destination being apparated to
-