java.lang.Object
java.lang.Enum<MagicTeleport>
org.highlife.api.methods.walking.web.node.impl.teleports.MagicTeleport
All Implemented Interfaces:
Serializable, Comparable<MagicTeleport>, Constable, Teleport

public enum MagicTeleport extends Enum<MagicTeleport> implements Teleport
  • Enum Constant Details

  • Method Details

    • values

      public static MagicTeleport[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MagicTeleport valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • hasRequirements

      public boolean hasRequirements()
      Specified by:
      hasRequirements in interface Teleport
    • canDo

      public boolean canDo()
    • execute

      public boolean execute()
      Specified by:
      execute in interface Teleport
    • getSpell

      public Spell getSpell()
    • getAction

      public String getAction()
    • getX

      public int getX()
      Specified by:
      getX in interface Teleport
    • getY

      public int getY()
      Specified by:
      getY in interface Teleport
    • getZ

      public int getZ()
      Specified by:
      getZ in interface Teleport