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;
}
public void clear() {
this.path = null;
this.isValid = false;
}
public boolean hasPath() {
return this.isValid;
}
@Nullable
public IPath<? extends IPathWaypoint> getPath() {
return this.path;
}
}