Class SpiralSearchUtil

java.lang.Object
com.hypixel.hytale.builtin.locate.SpiralSearchUtil

public final class SpiralSearchUtil extends Object
Searches outward from a starting position in a spiral pattern at chunk resolution to find the nearest position matching a predicate on the zone/biome result.
  • Method Details

    • search

      @Nullable public static org.joml.Vector3i search(@Nonnull ChunkGenerator generator, int seed, int startX, int startZ, int maxRadius, @Nonnull Predicate<ZoneBiomeResult> predicate)
      Searches outward from (startX, startZ) in a spiral pattern, testing each chunk's ZoneBiomeResult against the given predicate. Returns the block position (y=0) of the first match, or null if nothing is found within the max radius.