Contents
Class PrefabPatternSearchUtil
java.lang.Object
com.hypixel.hytale.builtin.locate.PrefabPatternSearchUtil
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 Summary
Modifier and TypeMethodDescriptionstatic Collection<String> collectAllPrefabKeys(ChunkGenerator generator) search(ChunkGenerator generator, int seed, int startX, int startZ, int maxRadius, String prefabKey, int maxResults) Searches outward from the player position to find up to maxResults scattered prefabs matching the given key, sorted by distance.
-
Method Details
-
collectAllPrefabKeys
-
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.
-