Axis
Link to axis
Importare la Classe
Link to importare-la-classe
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.Axis;
Interfacce Implementate
Link to interfacce-implementate
Axis implements the following interfaces. That means all methods defined in these interfaces are also available in Axis
- StringRepresentable
- Predicate<Direction>
Enum Constants
Link to enum-constants
Axis is an enum. It has 3 enum constants. They are accessible using the code below.
ZenScript CopyAxis.X
Axis.Y
Axis.Z
Metodi
Link to metodi
Name: choose
Return Type: double
ZenScript CopyAxis.choose(x as double, y as double, z as double) as double
Parametro | Tipo | Descrizione |
---|---|---|
Parametro x | Tipo double | Descrizione No Description Provided |
Parametro y | Tipo double | Descrizione No Description Provided |
Parametro z | Tipo double | Descrizione No Description Provided |
Name: choose
Return Type: int
ZenScript CopyAxis.choose(x as int, y as int, z as int) as int
Parametro | Tipo | Descrizione |
---|---|---|
Parametro x | Tipo int | Descrizione No Description Provided |
Parametro y | Tipo int | Descrizione No Description Provided |
Parametro z | Tipo int | Descrizione No Description Provided |
Name: getName
Return Type: string
ZenScript Copy// Axis.getName() as string
myAxis.getName();
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 CopyAxis.test(direction as Direction) as boolean
Parametro | Tipo | Descrizione |
---|---|---|
Parametro direction | Tipo Direction | Descrizione No Description Provided |
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter | Descrizione |
---|---|---|---|---|
Nome horizontal | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome nome | Tipo string | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome plane | Tipo Plane | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome vertical | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |