Direction
Link to direction
Importing the class
Link to importing-the-class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport crafttweaker.api.util.Direction;
Implemented Interfaces
Link to implemented-interfaces
Direction implements the following interfaces. That means all methods defined in these interfaces are also available in Direction
Enum Constants
Link to enum-constants
Direction is an enum. It has 6 enum constants. They are accessible using the code below.
ZenScript CopyDirection.DOWN
Direction.UP
Direction.NORTH
Direction.SOUTH
Direction.WEST
Direction.EAST
Methods
Link to methods
Name: getAxisDirection
Return Type: AxisDirection
ZenScript Copy// Direction.getAxisDirection() as AxisDirection
myDirection.getAxisDirection();
Name: getClockWise
Return Type: Direction
ZenScript Copy// Direction.getClockWise() as Direction
myDirection.getClockWise();
Name: getCounterClockWise
Return Type: Direction
ZenScript Copy// Direction.getCounterClockWise() as Direction
myDirection.getCounterClockWise();
Name: getName
Return Type: string
ZenScript Copy// Direction.getName() as string
myDirection.getName();
Name: getNormal
Return Type: Vec3i
ZenScript Copy// Direction.getNormal() as Vec3i
myDirection.getNormal();
Name: getOpposite
Return Type: Direction
ZenScript Copy// Direction.getOpposite() as Direction
myDirection.getOpposite();
Name: getRotation
Return Type: Quaternion
ZenScript Copy// Direction.getRotation() as Quaternion
myDirection.getRotation();
Name: getStepX
Return Type: int
ZenScript Copy// Direction.getStepX() as int
myDirection.getStepX();
Name: getStepY
Return Type: int
ZenScript Copy// Direction.getStepY() as int
myDirection.getStepY();
Name: getStepZ
Return Type: int
ZenScript Copy// Direction.getStepZ() as int
myDirection.getStepZ();
Name: isFacingAngle
Return Type: boolean
ZenScript CopyDirection.isFacingAngle(degrees as float) as boolean
Parameter | Type | Description |
---|---|---|
Parameter degrees | Type float | Description No Description Provided |
Name: toYRot
Return Type: float
ZenScript Copy// Direction.toYRot() as float
myDirection.toYRot();
Properties
Link to properties
Nombre | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Nombre axis | Type Axis | Has Getter true | Has Setter false | Description No Description Provided |
Nombre axisDirection | Type AxisDirection | Has Getter true | Has Setter false | Description No Description Provided |
Nombre clockWise | Type Direction | Has Getter true | Has Setter false | Description No Description Provided |
Nombre counterClockWise | Type Direction | Has Getter true | Has Setter false | Description No Description Provided |
Nombre normal | Type Vec3i | Has Getter true | Has Setter false | Description No Description Provided |
Nombre opposite | Type Direction | Has Getter true | Has Setter false | Description No Description Provided |
Nombre rotation | Type Quaternion | Has Getter true | Has Setter false | Description No Description Provided |
Nombre step | Type Vector3f | Has Getter true | Has Setter false | Description No Description Provided |
Nombre stepX | Type int | Has Getter true | Has Setter false | Description No Description Provided |
Nombre stepY | Type int | Has Getter true | Has Setter false | Description No Description Provided |
Nombre stepZ | Type int | Has Getter true | Has Setter false | Description No Description Provided |
Nombre toYRot | Type float | Has Getter true | Has Setter false | Description No Description Provided |