final class NearestBlockUtil
Class NearestBlockUtil. Provides nearestblockutil functionality for the Hytale server.
java.lang.Object > NearestBlockUtil
Field Summary
blockX
final
int
blockX
Field blockX.
blockY
final
int
blockY
Field blockY.
blockZ
final
int
blockZ
Field blockZ.
rx
final
double
rx
Field rx.
ry
final
double
ry
Field ry.
rz
final
double
rz
Field rz.
tmp
final
Vector3i
tmp
Field tmp.
dx
final
double
dx
Field dx.
dy
final
double
dy
Field dy.
dz
final
double
dz
Field dz.
dist
final
double
dist
Field dist.
Method Detail
NearestBlockUtil
public
private
NearestBlockUtil
()
Method NearestBlockUtil.
findNearestBlock
static
Vector3i
findNearestBlock
(@Nonnull final Vector3d position, @Nonnull final BiPredicate validBlock, final T t)
Method findNearestBlock.
- Parameters:
@Nonnull final Vector3dposition@Nonnull final BiPredicatevalidBlockfinal Tt
IterationElement
public
new
IterationElement
(-1, 0, 0, x -> 0.0, y -> y, z -> z)
Method IterationElement.
- Parameters:
-1-100x -> 0.0, y -> y, z ->z
getOffsetX
public
int
getOffsetX
()
Method getOffsetX.
getOffsetY
public
int
getOffsetY
()
Method getOffsetY.
getOffsetZ
public
int
getOffsetZ
()
Method getOffsetZ.
getX
public
DoubleUnaryOperator
getX
()
Method getX.
getY
public
DoubleUnaryOperator
getY
()
Method getY.
getZ
public
DoubleUnaryOperator
getZ
()
Method getZ.