Class PathProvider

java.lang.Object
com.hypixel.hytale.server.npc.sensorinfo.PathProvider
All Implemented Interfaces:
ExtraInfoProvider, IPathProvider

public class PathProvider extends Object implements IPathProvider
Created on 31/08/2018
  • Constructor Details

    • PathProvider

      public PathProvider()
  • Method Details

    • setPath

      public void setPath(IPath<? extends IPathWaypoint> path)
    • clear

      public void clear()
      Description copied from interface: IPathProvider
      Reset path provider so that hasPath() will return false
      Specified by:
      clear in interface IPathProvider
    • hasPath

      public boolean hasPath()
      Description copied from interface: IPathProvider
      Returns whether this provider has a path
      Specified by:
      hasPath in interface IPathProvider
      Returns:
      whether the provider has a path
    • getPath

      @Nullable public IPath<? extends IPathWaypoint> getPath()
      Description copied from interface: IPathProvider
      Returns the provided path, or null if no path is contained
      Specified by:
      getPath in interface IPathProvider
      Returns:
      the path