BlockPos
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.
import crafttweaker.api.util.math.BlockPos;Extending Vec3i
BlockPos extends Vec3i. That means all methods available in Vec3i are also available in BlockPos
Methods
Return Type: BlockPos
// BlockPos.above() as BlockPos
myBlockPos.above();Return Type: BlockPos
BlockPos.above(distance as int) as BlockPos| Parameter | Type | Description |
|---|---|---|
Parameter distance | Type int | Description No Description Provided |
Return Type: BlockPos
// BlockPos.asImmutable() as BlockPos
myBlockPos.asImmutable();Return Type: long
// BlockPos.asLong() as long
myBlockPos.asLong();Return Type: MutableBlockPos
// BlockPos.asMutable() as MutableBlockPos
myBlockPos.asMutable();Return Type: BlockPos
BlockPos.atY(value as int) as BlockPos| Parameter | Type | Description |
|---|---|---|
Parameter value | Type int | Description No Description Provided |
Return Type: BlockPos
// BlockPos.below() as BlockPos
myBlockPos.below();Return Type: BlockPos
BlockPos.below(distance as int) as BlockPos| Parameter | Type | Description |
|---|---|---|
Parameter distance | Type int | Description No Description Provided |
Return Type: BlockPos
// BlockPos.east() as BlockPos
myBlockPos.east();Return Type: BlockPos
BlockPos.east(distance as int) as BlockPos| Parameter | Type | Description |
|---|---|---|
Parameter distance | Type int | Description No Description Provided |
Return Type: BlockPos
BlockPos.multiply(scalar as int) as BlockPos| Parameter | Type | Description |
|---|---|---|
Parameter scalar | Type int | Description No Description Provided |
Return Type: BlockPos
// BlockPos.north() as BlockPos
myBlockPos.north();Return Type: BlockPos
BlockPos.north(distance as int) as BlockPos| Parameter | Type | Description |
|---|---|---|
Parameter distance | Type int | Description No Description Provided |
Return Type: BlockPos
BlockPos.offset(x as double, y as double, z as double) as BlockPos| Parameter | Type | Description |
|---|---|---|
Parameter x | Type double | Description No Description Provided |
Parameter y | Type double | Description No Description Provided |
Parameter z | Type double | Description No Description Provided |
Return Type: BlockPos
BlockPos.offset(x as int, y as int, z as int) as BlockPos| Parameter | Type | Description |
|---|---|---|
Parameter x | Type int | Description No Description Provided |
Parameter y | Type int | Description No Description Provided |
Parameter z | Type int | Description No Description Provided |
Return Type: BlockPos
// BlockPos.south() as BlockPos
myBlockPos.south();Return Type: BlockPos
BlockPos.south(distance as int) as BlockPos| Parameter | Type | Description |
|---|---|---|
Parameter distance | Type int | Description No Description Provided |
Return Type: BlockPos
// BlockPos.west() as BlockPos
myBlockPos.west();Return Type: BlockPos
BlockPos.west(distance as int) as BlockPos| Parameter | Type | Description |
|---|---|---|
Parameter distance | Type int | Description No Description Provided |