BlockPos
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Extends
BlockPos extends Vec3i
.
Implements
Undocumented Interfaces
Comparable<Vec3i>
Constructors
new(x as int, y as int, z as int)
Creates a new BlockPos using the provided values.
Parameters:
x: int
Type: int
- The x value of the blockpos y: int
Type: int
- The y value of the blockpos z: int
Type: int
- The z value of the blockpos new(vector as Vec3i)
Members
asImmutable() as BlockPos
Return Type:
BlockPos
asLong() as long
Return Type:
long
asMutable() as MutableBlockPos
Return Type:
MutableBlockPos
atY(value as int) as BlockPos
Parameters:
value: int
Type: int
Return Type:
BlockPos
multiply(scalar as int) as BlockPos
Parameters:
scalar: int
Type: int
Return Type:
BlockPos
relative(direction as Direction) as BlockPos
relative(direction as Direction, distance as int) as BlockPos
relative(axis as Axis, distance as int) as BlockPos
Getter
Return Type:
string
toShortString() as string
Return Type:
string
Getter
Return Type:
int
x() as int
Return Type:
int
Getter
Return Type:
int
y() as int
Return Type:
int
Getter
Return Type:
int
z() as int
Return Type:
int