Class WorldPathData

java.lang.Object
com.hypixel.hytale.builtin.path.WorldPathData
All Implemented Interfaces:
Resource<EntityStore>, Cloneable

public class WorldPathData extends Object implements Resource<EntityStore>
  • Field Details

    • prefabPaths

      private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<PrefabPathCollection> prefabPaths
  • Constructor Details

    • WorldPathData

      public WorldPathData()
  • Method Details

    • getResourceType

      public static ResourceType<EntityStore,WorldPathData> getResourceType()
    • getNearestPrefabPath

      @Nullable public IPrefabPath getNearestPrefabPath(int worldgenId, int nameIndex, @Nonnull Vector3d position, Set<UUID> disallowedPaths, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
    • getNearestPrefabPath

      @Nullable public IPrefabPath getNearestPrefabPath(int worldgenId, @Nonnull Vector3d position, Set<UUID> disallowedPaths, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
    • getOrConstructPrefabPath

      public IPrefabPath getOrConstructPrefabPath(int worldgenId, @Nonnull UUID id, @Nonnull String name, @Nonnull com.hypixel.fastutil.ints.Int2ObjectConcurrentHashMap.IntBiObjFunction<UUID,String,IPrefabPath> pathGenerator)
    • removePrefabPathWaypoint

      public void removePrefabPathWaypoint(int worldgenId, UUID id, int index)
    • unloadPrefabPathWaypoint

      public void unloadPrefabPathWaypoint(int worldgenId, UUID id, int index)
    • removePrefabPath

      public void removePrefabPath(int worldgenId, UUID id)
    • getPrefabPath

      @Nullable public IPrefabPath getPrefabPath(int worldgenId, UUID id, boolean ignoreLoadState)
    • compactPrefabPath

      public void compactPrefabPath(int worldgenId, UUID id)
    • getAllPrefabPaths

      @Nonnull public List<IPrefabPath> getAllPrefabPaths()
    • getPrefabPathCollection

      @Nonnull public PrefabPathCollection getPrefabPathCollection(int worldgenId)
    • clone

      public Resource<EntityStore> clone()
      Specified by:
      clone in interface Resource<EntityStore>
      Overrides:
      clone in class Object