FrontAndTop

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.

script.zs
import crafttweaker.api.util.math.FrontAndTop;

Implemented Interfaces

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

Enum Constants

FrontAndTop is an enum. It has 12 enum constants. They are accessible using the code below.

script.zs
<constant:minecraft:direction/frontandtop:down_east>
<constant:minecraft:direction/frontandtop:down_north>
<constant:minecraft:direction/frontandtop:down_south>
<constant:minecraft:direction/frontandtop:down_west>
<constant:minecraft:direction/frontandtop:up_east>
<constant:minecraft:direction/frontandtop:up_north>
<constant:minecraft:direction/frontandtop:up_south>
<constant:minecraft:direction/frontandtop:up_west>
<constant:minecraft:direction/frontandtop:west_up>
<constant:minecraft:direction/frontandtop:east_up>
<constant:minecraft:direction/frontandtop:north_up>
<constant:minecraft:direction/frontandtop:south_up>

Methods

Return Type: Direction

script.zs
// FrontAndTop.front() as Direction
myFrontAndTop.front();

Return Type: Direction

script.zs
// FrontAndTop.top() as Direction
myFrontAndTop.top();

Properties

NameTypeHas GetterHas Setter
Name
front
Type
Direction
Has Getter
true
Has Setter
false
Name
top
Type
Direction
Has Getter
true
Has Setter
false