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 int
blockX()
Gets the block x value for this positiondefault int
blockY()
Gets the block x value for this positiondefault int
blockZ()
Gets the block x value for this positiondefault boolean
isBlock()
Checks of this position represents aBlockPosition
default boolean
isFine()
Checks if this position represents aFinePosition
default @NotNull FinePosition
offset
(double x, double y, double z) Returns a position offset by the specified amounts.default @NotNull FinePosition
offset
(int x, int y, int z) Returns a position offset by the specified amounts.default @NotNull BlockPosition
toBlock()
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:Position
Gets the block x value for this position -
blockY
default int blockY()Description copied from interface:Position
Gets the block x value for this position -
blockZ
default int blockZ()Description copied from interface:Position
Gets the block x value for this position -
isBlock
default boolean isBlock()Description copied from interface:Position
Checks of this position represents aBlockPosition
-
isFine
default boolean isFine()Description copied from interface:Position
Checks if this position represents aFinePosition
-
toBlock
Description copied from interface:Position
Returns the block position of this position or itself if it already is a block position -
offset
Description copied from interface:Position
Returns a position offset by the specified amounts. -
offset
Description copied from interface:Position
Returns a position offset by the specified amounts.
-