Class Direction

java.lang.Object
ch.njol.skript.util.Direction
All Implemented Interfaces:
YggdrasilSerializable, YggdrasilSerializable.YggdrasilRobustSerializable

public class Direction extends Object implements YggdrasilSerializable.YggdrasilRobustSerializable
  • Field Details

    • ZERO

      public static final Direction ZERO
      A direction that doesn't point anywhere, i.e. equal to 'at'.
    • IDENTITY

      public static final Direction IDENTITY
      A direction that points in the direction of the object(s) passed to the various getDirection methods.
    • BF_X

      public static final BlockFace BF_X
    • BF_Y

      public static final BlockFace BF_Y
    • BF_Z

      public static final BlockFace BF_Z
    • m_meter

      public static final Noun m_meter
    • IGNORE_PITCH

      public static final double IGNORE_PITCH
      Use this as pitch to force a horizontal direction
      See Also:
  • Constructor Details

    • Direction

      public Direction(double[] mod)
    • Direction

      public Direction()
    • Direction

      public Direction(double pitch, double yaw, double length)
    • Direction

      public Direction(BlockFace f, double length)
    • Direction

      public Direction(Vector v)
  • Method Details