Interface FinePosition
- All Superinterfaces:
Position
- All Known Implementing Classes:
Location
A position represented with doubles.
May see breaking changes until Experimental annotation is removed.
- See Also:
-
Field Summary
Fields inherited from interface Position
BLOCK_ZERO, FINE_ZERO -
Method Summary
Modifier and TypeMethodDescriptiondefault intblockX()Gets the block x value for this positiondefault intblockY()Gets the block y value for this positiondefault intblockZ()Gets the block z value for this positiondefault booleanisBlock()Checks of this position represents aBlockPositiondefault booleanisFine()Checks if this position represents aFinePositiondefault FinePositionoffset(double x, double y, double z) Returns a position offset by the specified amounts.default FinePositionoffset(int x, int y, int z) Returns a position offset by the specified amounts.default BlockPositiontoBlock()Returns the block position of this position or itself if it already is a block position
-
Method Details
-
blockX
-
blockY
-
blockZ
-
isBlock
default boolean isBlock()Description copied from interface:PositionChecks of this position represents aBlockPosition -
isFine
default boolean isFine()Description copied from interface:PositionChecks if this position represents aFinePosition -
toBlock
Description copied from interface:PositionReturns the block position of this position or itself if it already is a block position -
offset
Description copied from interface:PositionReturns a position offset by the specified amounts. -
offset
Description copied from interface:PositionReturns a position offset by the specified amounts.
-