PrefabPathCollection
Package: com.hypixel.hytale.builtin.path
public class PrefabPathCollectionCollection 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.
Methods
Section titled “Methods”| Modifier | Return Type | Signature |
|---|---|---|
@Nullable public | IPrefabPath | getNearestPrefabPath(int nameIndex, @Nonnull Vector3d position, Set<UUID> disallowedPaths, @Nonnull ComponentAccessor<EntityStore> componentAccessor) |
public | IPrefabPath | getPath(UUID id) |
public | IPrefabPath | getOrConstructPath(@Nonnull UUID id, @Nonnull String name, @Nonnull IntBiObjFunction<UUID, String, IPrefabPath> pathGenerator) |
@Nullable public | IPrefabPath | getNearestPrefabPath(@Nonnull Vector3d position, @Nullable Set<UUID> disallowedPaths, @Nonnull ComponentAccessor<EntityStore> componentAccessor) |
public | void | removePathWaypoint(UUID id, int index) |
public | void | unloadPathWaypoint(UUID id, int index) |
public | void | removePath(UUID id) |
public | boolean | isEmpty() |
public | void | forEach(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.