Enum Class MoveType

java.lang.Object
java.lang.Enum<MoveType>
com.sk89q.worldguard.session.MoveType
All Implemented Interfaces:
Serializable, Comparable<MoveType>, Constable

public enum MoveType extends Enum<MoveType>
Types of movements.

Used with Session#testMoveTo(Location, MoveType).

  • Enum Constant Details

    • RESPAWN

      public static final MoveType RESPAWN
    • EMBARK

      public static final MoveType EMBARK
    • MOVE

      public static final MoveType MOVE
    • GLIDE

      public static final MoveType GLIDE
    • SWIM

      public static final MoveType SWIM
    • TELEPORT

      public static final MoveType TELEPORT
    • RIDE

      public static final MoveType RIDE
    • OTHER_NON_CANCELLABLE

      public static final MoveType OTHER_NON_CANCELLABLE
    • OTHER_CANCELLABLE

      public static final MoveType OTHER_CANCELLABLE
  • Method Details

    • values

      public static MoveType[] 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 MoveType 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
    • isCancellable

      public boolean isCancellable()
    • isTeleport

      public boolean isTeleport()