Enum Class Rotator.Axis

java.lang.Object
java.lang.Enum<Rotator.Axis>
org.skriptlang.skript.bukkit.misc.rotation.Rotator.Axis
All Implemented Interfaces:
Serializable, Comparable<Rotator.Axis>, Constable
Enclosing interface:
Rotator<T>

public static enum Rotator.Axis extends Enum<Rotator.Axis>
Represents an axis around which to rotate.
  • Enum Constant Details

    • X

      public static final Rotator.Axis X
      The global X axis, relative to the world as a whole.
    • LOCAL_X

      public static final Rotator.Axis LOCAL_X
      The local X axis, relative to the object being rotated.
    • Y

      public static final Rotator.Axis Y
      The global Y axis, relative to the world as a whole.
    • LOCAL_Y

      public static final Rotator.Axis LOCAL_Y
      The local Y axis, relative to the object being rotated.
    • Z

      public static final Rotator.Axis Z
      The global Z axis, relative to the world as a whole.
    • LOCAL_Z

      public static final Rotator.Axis LOCAL_Z
      The local Z axis, relative to the object being rotated.
    • ARBITRARY

      public static final Rotator.Axis ARBITRARY
      An arbitrary global axis, relative to the world as a whole.
    • LOCAL_ARBITRARY

      public static final Rotator.Axis LOCAL_ARBITRARY
      An arbitrary local axis, relative to the object being rotated.
  • Method Details

    • values

      public static Rotator.Axis[] 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 Rotator.Axis 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Rotator.Axis>
    • fromBukkit

      public static Rotator.Axis fromBukkit(org.bukkit.Axis axis)
      A helper method for converting from Bukkit Axis.
      Parameters:
      axis - the axis to convert from
      Returns:
      the converted axis