Class PrefabPatternSearchUtil

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

public final class PrefabPatternSearchUtil extends Object
Searches for scattered (non-unique) prefab patterns by simulating the worldgen placement logic without requiring chunk data. Evaluates grid positions, noise density, and biome matching, but skips height and block conditions.
  • Method Details

    • collectAllPrefabKeys

      @Nonnull public static Collection<String> collectAllPrefabKeys(@Nonnull ChunkGenerator generator)
    • search

      @Nonnull public static List<Map.Entry<String, org.joml.Vector3i>> search(@Nonnull ChunkGenerator generator, int seed, int startX, int startZ, int maxRadius, @Nonnull String prefabKey, int maxResults)
      Searches outward from the player position to find up to maxResults scattered prefabs matching the given key, sorted by distance. Each entry maps prefab name to position.