Package io.papermc.paper.math
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 io.papermc.paper.math.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
default int blockX()Description copied from interface:PositionGets the block x value for this position -
blockY
default int blockY()Description copied from interface:PositionGets the block y value for this position -
blockZ
default int blockZ()Description copied from interface:PositionGets the block z value for this position -
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.
-