Enum Class TeleportFlag.Relative

All Implemented Interfaces:
TeleportFlag, Serializable, Comparable<TeleportFlag.Relative>, Constable
Enclosing interface:

@Experimental public static enum TeleportFlag.Relative extends Enum<TeleportFlag.Relative> implements TeleportFlag
Note: These flags only work on Player entities.

Represents coordinates in a teleportation that should be handled relatively.

Coordinates of the location that the client should handle as relative teleportation Relative teleportation flags are only used client side, and cause the player to not lose velocity in that specific coordinate. The location of the teleportation will not change.

See Also:
  • Enum Constant Details

  • Method Details

    • values

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

      public static TeleportFlag.Relative 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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null