Diese Klasse importieren

Link to diese-klasse-importieren

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
Copy
import crafttweaker.api.util.direction.Axis;

Implemented Interfaces

Link to implemented-interfaces

Axis implements the following interfaces. That means all methods defined in these interfaces are also available in Axis

Axis is an enum. It has 3 enum constants. They are accessible using the code below.

ZenScript
Copy
Axis.X
Axis.Y
Axis.Z

Name: choose

Return Type: double

ZenScript
Copy
Axis.choose(x as double, y as double, z as double) as double
ParameterTypeBeschreibung
Parameter
x
Type
double
Beschreibung
No Description Provided
Parameter
y
Type
double
Beschreibung
No Description Provided
Parameter
z
Type
double
Beschreibung
No Description Provided

Name: choose

Return Type: int

ZenScript
Copy
Axis.choose(x as int, y as int, z as int) as int
ParameterTypeBeschreibung
Parameter
x
Type
int
Beschreibung
No Description Provided
Parameter
y
Type
int
Beschreibung
No Description Provided
Parameter
z
Type
int
Beschreibung
No Description Provided

Name: getName

Return Type: string

ZenScript
Copy
// Axis.getName() as string

myAxis.getName();

Name: getPlane

Return Type: Plane

ZenScript
Copy
// Axis.getPlane() as Plane

myAxis.getPlane();

Name: isHorizontal

Return Type: boolean

ZenScript
Copy
// Axis.isHorizontal() as boolean

myAxis.isHorizontal();

Name: isVertical

Return Type: boolean

ZenScript
Copy
// Axis.isVertical() as boolean

myAxis.isVertical();

Name: test

Return Type: boolean

ZenScript
Copy
Axis.test(direction as Direction) as boolean
ParameterTypeBeschreibung
Parameter
direction
Type
Direction
Beschreibung
No Description Provided
NameTypeHas GetterHas SetterBeschreibung
Name
horizontal
Type
boolean
Has Getter
true
Has Setter
false
Beschreibung
No Description Provided
Name
name
Type
string
Has Getter
true
Has Setter
false
Beschreibung
No Description Provided
Name
plane
Type
Plane
Has Getter
true
Has Setter
false
Beschreibung
No Description Provided
Name
vertical
Type
boolean
Has Getter
true
Has Setter
false
Beschreibung
No Description Provided