Class PrefabPathCollection

java.lang.Object
com.hypixel.hytale.builtin.path.PrefabPathCollection

public class PrefabPathCollection extends Object
  • Field Details

    • LOGGER

      private static final com.hypixel.hytale.logger.HytaleLogger LOGGER
    • worldgenId

      private final int worldgenId
    • paths

      private final Map<UUID,IPrefabPath> 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

      public IPrefabPath getPath(UUID id)
    • 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

      public void removePathWaypoint(UUID id, int index)
    • unloadPathWaypoint

      public void unloadPathWaypoint(UUID id, int index)
    • removePathWaypoint

      private void removePathWaypoint(UUID id, int index, boolean unload)
    • removePath

      public void removePath(UUID id)
    • isEmpty

      public boolean isEmpty()
    • forEach

      public void forEach(BiConsumer<UUID,IPrefabPath> consumer)