Contents
Class SpherePosition
java.lang.Object
com.hypixel.hytale.math.iterator.SpherePosition
Mutable position holder returned by
SphereSpiralIterator.position().
A single instance is reused across SphereSpiralIterator.advance() calls to avoid
per-step allocation. Read the fields immediately after advance() returns true; the
values are invalidated by the next advance().
Not thread-safe. The iterator and its position are intended for single-threaded use.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
x
public int xWorld-space chunk X coordinate (center + dx). -
y
public int yWorld-space chunk Y coordinate (center + dy). -
z
public int zWorld-space chunk Z coordinate (center + dz). -
distSq
public int distSq3D Euclidean distance² from the iterator's center. Useful for advancing the tracker's "sent up to this distance" cursor between ticks.
-
-
Constructor Details
-
SpherePosition
public SpherePosition()
-