Interface IPrefabPathWaypoint

All Superinterfaces:
IPathWaypoint
All Known Implementing Classes:
PatrolPathMarkerEntity

public interface IPrefabPathWaypoint extends IPathWaypoint
Represents a waypoint that is part of a prefab path.
  • Method Details

    • onReplaced

      void onReplaced()
      Called if this waypoint is replaced by another with the same order index
    • initialise

      void initialise(@Nonnull UUID id, @Nonnull String path, int index, double pauseTime, float observationAngle, int worldGenId, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
      Initialise a newly created waypoint and add it to its target path
      Parameters:
      id - the id of the target path
      path - the friendly name of the target path
      index - the index at which to insert. -1 indicates appending
      pauseTime - the length of time the NPC should pause at this waypoint
      observationAngle - the sector within which an NPC should turn at the waypoint
      componentAccessor - The ComponentAccessor<EntityStore> for component access.
    • getParentPath

      IPath<IPrefabPathWaypoint> getParentPath()
      Returns:
      the parent path of this waypoint.