classpublicPriority 3
PathProvider
com.hypixel.hytale.server.npc.sensorinfo.PathProvider
implements IPathProvider
3
Methods
3
Public Methods
1
Fields
1
Constructors
Constructors
public
PathProvider()Methods
Public Methods (3)
public
void clear()@Override
public
boolean hasPath()@Override
public
void setPath(IPath<? extends IPathWaypoint> path)Fields
Private/Package Fields (1)
private
boolean isValidInheritance
Parent
Current
Interface
Child
Use mouse wheel to zoom, drag to pan. Click nodes to navigate.
Related Classes
Used By
Source Code
package com.hypixel.hytale.server.npc.sensorinfo;
import com.hypixel.hytale.server.core.universe.world.path.IPath;
import com.hypixel.hytale.server.core.universe.world.path.IPathWaypoint;
import javax.annotation.Nullable;
public class PathProvider implements IPathProvider {
@Nullable
private IPath<? extends IPathWaypoint> path;
private boolean isValid;
public PathProvider() {
}
public void setPath(IPath<? extends IPathWaypoint> path) {
this.path = path;
this.isValid = true;
}
@Override
public void clear() {
this.path = null;
this.isValid = false;
}
@Override
public boolean hasPath() {
return this.isValid;
}
@Nullable
@Override
public IPath<? extends IPathWaypoint> getPath() {
return this.path;
}
}