BlockPos
Represents a position of a block in the world
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.
Constructors
Casters
Methods
Adds the given values to this position, and returns a new position with the new values.
Return Type: BlockPos
Adds the given values to this position, and returns a new position with the new values.
Return Type: BlockPos
Creates a new BlockPos based on the cross product of this position, and the given position
Return Type: BlockPos
Gets the squared distance of this position to the specified BlockPos, using the center of the BlockPos
Return Type: double
Gets the squared distance of this position to the specified coordinates
Return Type: double
Creates a new BlockPos based on this BlockPos that is one block lower than this BlockPos
Return Type: BlockPos
Creates a new BlockPos based on this BlockPos that is n block(s) lower than this BlockPos
Return Type: BlockPos
Creates a new BlockPos based on this BlockPos that is one block east of this BlockPos
Return Type: BlockPos
Creates a new BlockPos based on this BlockPos that is n block(s) east of this BlockPos
Return Type: BlockPos
Gets the Manhattan Distance of this pos compared to a different position
Return Type: int
Creates a new BlockPos based on this BlockPos that is one block north of this BlockPos
Return Type: BlockPos
Creates a new BlockPos based on this BlockPos that is n block(s) north of this BlockPos
Return Type: BlockPos
Creates a new BlockPos based on this BlockPos that is one block south of this BlockPos
Return Type: BlockPos
Creates a new BlockPos based on this BlockPos that is n block(s) south of this BlockPos
Return Type: BlockPos
Creates a new BlockPos based on this BlockPos that is one block higher than this BlockPos
Return Type: BlockPos
Creates a new BlockPos based on this BlockPos that is n block(s) higher than this BlockPos
Return Type: BlockPos
Creates a new BlockPos based on this BlockPos that is one block west of this BlockPos
Return Type: BlockPos
Creates a new BlockPos based on this BlockPos that is n block(s) west of this BlockPos
Return Type: BlockPos
Checks if the given BlockPos is within the specified distance of this BlockPos (this uses the middle of the BlockPos)
Return Type: boolean