Class OllivandersApparateByCoordinatesEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
net.pottercraft.ollivanders2.spell.events.ApparateEvent
net.pottercraft.ollivanders2.spell.events.OllivandersApparateByCoordinatesEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class OllivandersApparateByCoordinatesEvent extends ApparateEvent
Event thrown whenever a player apparated by coordinates
  • 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

    Constructors
    Constructor
    Description
    OllivandersApparateByCoordinatesEvent(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.Location dest)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull org.bukkit.Location
    The apparate destination

    Methods inherited from class net.pottercraft.ollivanders2.spell.events.ApparateEvent

    getHandlerList, getHandlers, isCancelled, setCancelled

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

    getPlayer

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

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

    • OllivandersApparateByCoordinatesEvent

      public OllivandersApparateByCoordinatesEvent(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull org.bukkit.Location dest)
      Constructor
      Parameters:
      player - the player apparating
      dest - the destination being apparated to
  • Method Details

    • getDestination

      @NotNull public @NotNull org.bukkit.Location getDestination()
      The apparate destination
      Returns:
      the destination being apparated to