Rename Waypoints to WaypointCollection
This commit is contained in:
parent
5c83ee2648
commit
86d1512e5b
@ -32,7 +32,7 @@ import java.util.stream.Collectors;
|
|||||||
*
|
*
|
||||||
* @author leijurv
|
* @author leijurv
|
||||||
*/
|
*/
|
||||||
public class Waypoints implements IWaypointCollection {
|
public class WaypointCollection implements IWaypointCollection {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Magic value to detect invalid waypoint files
|
* Magic value to detect invalid waypoint files
|
||||||
@ -42,7 +42,7 @@ public class Waypoints implements IWaypointCollection {
|
|||||||
private final Path directory;
|
private final Path directory;
|
||||||
private final Map<IWaypoint.Tag, Set<IWaypoint>> waypoints;
|
private final Map<IWaypoint.Tag, Set<IWaypoint>> waypoints;
|
||||||
|
|
||||||
Waypoints(Path directory) {
|
WaypointCollection(Path directory) {
|
||||||
this.directory = directory;
|
this.directory = directory;
|
||||||
if (!Files.exists(directory)) {
|
if (!Files.exists(directory)) {
|
||||||
try {
|
try {
|
4
src/main/java/baritone/cache/WorldData.java
vendored
4
src/main/java/baritone/cache/WorldData.java
vendored
@ -34,7 +34,7 @@ import java.nio.file.Path;
|
|||||||
public class WorldData implements IWorldData {
|
public class WorldData implements IWorldData {
|
||||||
|
|
||||||
public final CachedWorld cache;
|
public final CachedWorld cache;
|
||||||
private final Waypoints waypoints;
|
private final WaypointCollection waypoints;
|
||||||
private final ContainerMemory containerMemory;
|
private final ContainerMemory containerMemory;
|
||||||
//public final MapData map;
|
//public final MapData map;
|
||||||
public final Path directory;
|
public final Path directory;
|
||||||
@ -43,7 +43,7 @@ public class WorldData implements IWorldData {
|
|||||||
WorldData(Path directory, int dimension) {
|
WorldData(Path directory, int dimension) {
|
||||||
this.directory = directory;
|
this.directory = directory;
|
||||||
this.cache = new CachedWorld(directory.resolve("cache"), dimension);
|
this.cache = new CachedWorld(directory.resolve("cache"), dimension);
|
||||||
this.waypoints = new Waypoints(directory.resolve("waypoints"));
|
this.waypoints = new WaypointCollection(directory.resolve("waypoints"));
|
||||||
this.containerMemory = new ContainerMemory(directory.resolve("containers"));
|
this.containerMemory = new ContainerMemory(directory.resolve("containers"));
|
||||||
this.dimension = dimension;
|
this.dimension = dimension;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user