FrontAndTop
Link to frontandtop
导入类
Link to 导入类
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.math.FrontAndTop;
已实现的接口
Link to 已实现的接口
FrontAndTop implements the following interfaces. That means all methods defined in these interfaces are also available in FrontAndTop
Enum Constants
Link to enum-constants
FrontAndTop is an enum. It has 12 enum constants. They are accessible using the code below.
ZenScript Copy<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>
使用方式
Link to 使用方式
Name: front
Return Type: Direction
ZenScript Copy// FrontAndTop.front() as Direction
myFrontAndTop.front();
Name: top
Return Type: Direction
ZenScript Copy// FrontAndTop.top() as Direction
myFrontAndTop.top();
名称 | 类型 | 可获得 | 可设置 |
---|---|---|---|
名称 front | 类型 Direction | 可获得 true | 可设置 false |
名称 top | 类型 Direction | 可获得 true | 可设置 false |