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.
Extending Vec3i
BlockPos extends Vec3i. That means all methods available in Vec3i are also available in BlockPos
Constructors
Creates a new BlockPos using the values of the given vector. Note, the values will be floored down, providing 0.85 is the same as providing 0.
Parameter | Type | Description |
---|---|---|
Parameter vector | Type Vec3 | Description The vector to copy the values of. |
Creates a new BlockPos using the provided values.
Parameter | Type | Description |
---|---|---|
Parameter x | Type int | Description The x value of the blockpos |
Parameter y | Type int | Description The y value of the blockpos |
Parameter z | Type int | Description The z value of the blockpos |
Methods
Return Type: BlockPos
Return Type: BlockPos
Parameter | Type |
---|---|
Parameter distance | Type int |
Return Type: BlockPos
Return Type: long
Return Type: MutableBlockPos
Return Type: BlockPos
Parameter | Type |
---|---|
Parameter value | Type int |
Return Type: BlockPos
Return Type: BlockPos
Parameter | Type |
---|---|
Parameter distance | Type int |
Return Type: BlockPos
Return Type: BlockPos
Parameter | Type |
---|---|
Parameter distance | Type int |
Return Type: BlockPos
Parameter | Type |
---|---|
Parameter scalar | Type int |
Return Type: BlockPos
Return Type: BlockPos
Parameter | Type |
---|---|
Parameter distance | Type int |
Return Type: BlockPos
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Return Type: BlockPos
Parameter | Type |
---|---|
Parameter x | Type int |
Parameter y | Type int |
Parameter z | Type int |
Return Type: BlockPos
Return Type: BlockPos
Parameter | Type |
---|---|
Parameter distance | Type int |
Return Type: BlockPos
Return Type: BlockPos
Parameter | Type |
---|---|
Parameter distance | Type int |