Skip to content

WorldPathData

Package: com.hypixel.hytale.builtin.path

public class WorldPathData implements Resource<EntityStore>

ECS resource holding all prefab path data for a world. Organizes paths into PrefabPathCollection instances keyed by worldgen ID. Provides nearest-path queries, path construction, waypoint management, and bulk retrieval.

ModifierReturn TypeSignature
public staticResourceType<EntityStore, WorldPathData>getResourceType()
@Nullable publicIPrefabPathgetNearestPrefabPath(int worldgenId, int nameIndex, @Nonnull Vector3d position, Set<UUID> disallowedPaths, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
@Nullable publicIPrefabPathgetNearestPrefabPath(int worldgenId, @Nonnull Vector3d position, Set<UUID> disallowedPaths, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
publicIPrefabPathgetOrConstructPrefabPath(int worldgenId, @Nonnull UUID id, @Nonnull String name, @Nonnull IntBiObjFunction<UUID, String, IPrefabPath> pathGenerator)
publicvoidremovePrefabPathWaypoint(int worldgenId, UUID id, int index)
publicvoidunloadPrefabPathWaypoint(int worldgenId, UUID id, int index)
publicvoidremovePrefabPath(int worldgenId, UUID id)
@Nullable publicIPrefabPathgetPrefabPath(int worldgenId, UUID id, boolean ignoreLoadState)
publicvoidcompactPrefabPath(int worldgenId, UUID id)
@Nonnull publicList<IPrefabPath>getAllPrefabPaths()
@Nonnull publicPrefabPathCollectiongetPrefabPathCollection(int worldgenId)
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.