Class Ollivanders2TeleportActions.O2TeleportAction

java.lang.Object
net.pottercraft.ollivanders2.Ollivanders2TeleportActions.O2TeleportAction
Enclosing class:
Ollivanders2TeleportActions

public static class Ollivanders2TeleportActions.O2TeleportAction extends Object
A teleport action
  • Method Details

    • getPlayer

      @NotNull public @NotNull org.bukkit.entity.Player getPlayer()
      get the player who teleported
      Returns:
      the player who teleported
    • getToLocation

      @NotNull public @NotNull org.bukkit.Location getToLocation()
      get the location the player teleported to
      Returns:
      the destination
    • getFromLocation

      @NotNull public @NotNull org.bukkit.Location getFromLocation()
      get the location the player teleported from
      Returns:
      the source
    • isExplosionOnTeleport

      public boolean isExplosionOnTeleport()
      does this teleport do an explosion sound on teleport?
      Returns:
      true if it does an explosion sound, false otherwise