Skip to content

PrefabPathCollection

Package: com.hypixel.hytale.builtin.path

public class PrefabPathCollection

Collection of prefab paths within a single worldgen context. Stores paths by UUID and by friendly name index, supporting nearest-path lookup by position with optional exclusion sets.

ModifierReturn TypeSignature
@Nullable publicIPrefabPathgetNearestPrefabPath(int nameIndex, @Nonnull Vector3d position, Set<UUID> disallowedPaths, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
publicIPrefabPathgetPath(UUID id)
publicIPrefabPathgetOrConstructPath(@Nonnull UUID id, @Nonnull String name, @Nonnull IntBiObjFunction<UUID, String, IPrefabPath> pathGenerator)
@Nullable publicIPrefabPathgetNearestPrefabPath(@Nonnull Vector3d position, @Nullable Set<UUID> disallowedPaths, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
publicvoidremovePathWaypoint(UUID id, int index)
publicvoidunloadPathWaypoint(UUID id, int index)
publicvoidremovePath(UUID id)
publicbooleanisEmpty()
publicvoidforEach(BiConsumer<UUID, IPrefabPath> consumer)
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.