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

public class OllivandersApparateByNameEvent extends ApparateEvent
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

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

    Modifier and Type
    Method
    Description
    org.bukkit.Location
    Get the destination being apparated to
    Get the name of 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

    • OllivandersApparateByNameEvent

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

    • getDestinationName

      public String 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