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 SummaryFields inherited from interface io.papermc.paper.math.PositionBLOCK_ZERO, FINE_ZERO
- 
Method SummaryModifier and TypeMethodDescriptiondefault intblockX()Gets the block x value for this positiondefault intblockY()Gets the block x value for this positiondefault intblockZ()Gets the block x value for this positiondefault booleanisBlock()Checks of this position represents aBlockPositiondefault booleanisFine()Checks if this position represents aFinePositiondefault @NotNull FinePositionoffset(double x, double y, double z) Returns a position offset by the specified amounts.default @NotNull FinePositionoffset(int x, int y, int z) Returns a position offset by the specified amounts.default @NotNull BlockPositiontoBlock()Returns the block position of this position or itself if it already is a block position
- 
Method Details- 
blockXdefault int blockX()Description copied from interface:PositionGets the block x value for this position
- 
blockYdefault int blockY()Description copied from interface:PositionGets the block x value for this position
- 
blockZdefault int blockZ()Description copied from interface:PositionGets the block x value for this position
- 
isBlockdefault boolean isBlock()Description copied from interface:PositionChecks of this position represents aBlockPosition
- 
isFinedefault boolean isFine()Description copied from interface:PositionChecks if this position represents aFinePosition
- 
toBlockDescription copied from interface:PositionReturns the block position of this position or itself if it already is a block position
- 
offsetDescription copied from interface:PositionReturns a position offset by the specified amounts.
- 
offsetDescription copied from interface:PositionReturns a position offset by the specified amounts.
 
-