Package com.hypixel.hytale.builtin.path
Class PrefabPathCollection
java.lang.Object
com.hypixel.hytale.builtin.path.PrefabPathCollection
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.hypixel.hytale.logger.HytaleLoggerprivate final Map<UUID, IPrefabPath> private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<PrefabPathCollection.PathSet> private final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidforEach(BiConsumer<UUID, IPrefabPath> consumer) getNearestPrefabPath(int nameIndex, Vector3d position, Set<UUID> disallowedPaths, ComponentAccessor<EntityStore> componentAccessor) getNearestPrefabPath(Vector3d position, Set<UUID> disallowedPaths, ComponentAccessor<EntityStore> componentAccessor) getOrConstructPath(UUID id, String name, com.hypixel.fastutil.ints.Int2ObjectConcurrentHashMap.IntBiObjFunction<UUID, String, IPrefabPath> pathGenerator) booleanisEmpty()voidremovePath(UUID id) voidremovePathWaypoint(UUID id, int index) private voidremovePathWaypoint(UUID id, int index, boolean unload) voidunloadPathWaypoint(UUID id, int index)
-
Field Details
-
LOGGER
private static final com.hypixel.hytale.logger.HytaleLogger LOGGER -
worldgenId
private final int worldgenId -
paths
-
pathsByFriendlyName
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<PrefabPathCollection.PathSet> pathsByFriendlyName
-
-
Constructor Details
-
PrefabPathCollection
public PrefabPathCollection(int id)
-
-
Method Details
-
getNearestPrefabPath
@Nullable public IPrefabPath getNearestPrefabPath(int nameIndex, @Nonnull Vector3d position, Set<UUID> disallowedPaths, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
getPath
-
getOrConstructPath
public IPrefabPath getOrConstructPath(@Nonnull UUID id, @Nonnull String name, @Nonnull com.hypixel.fastutil.ints.Int2ObjectConcurrentHashMap.IntBiObjFunction<UUID, String, IPrefabPath> pathGenerator) -
getNearestPrefabPath
@Nullable public IPrefabPath getNearestPrefabPath(@Nonnull Vector3d position, @Nullable Set<UUID> disallowedPaths, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
removePathWaypoint
-
unloadPathWaypoint
-
removePathWaypoint
-
removePath
-
isEmpty
public boolean isEmpty() -
forEach
-