Rename Waypoints to WaypointCollection

This commit is contained in:
Brady 2018-12-03 19:58:37 -06:00
parent 5c83ee2648
commit 86d1512e5b
No known key found for this signature in database
GPG Key ID: 73A788379A197567
2 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ import java.util.stream.Collectors;
*
* @author leijurv
*/
public class Waypoints implements IWaypointCollection {
public class WaypointCollection implements IWaypointCollection {
/**
* Magic value to detect invalid waypoint files
@ -42,7 +42,7 @@ public class Waypoints implements IWaypointCollection {
private final Path directory;
private final Map<IWaypoint.Tag, Set<IWaypoint>> waypoints;
Waypoints(Path directory) {
WaypointCollection(Path directory) {
this.directory = directory;
if (!Files.exists(directory)) {
try {

View File

@ -34,7 +34,7 @@ import java.nio.file.Path;
public class WorldData implements IWorldData {
public final CachedWorld cache;
private final Waypoints waypoints;
private final WaypointCollection waypoints;
private final ContainerMemory containerMemory;
//public final MapData map;
public final Path directory;
@ -43,7 +43,7 @@ public class WorldData implements IWorldData {
WorldData(Path directory, int dimension) {
this.directory = directory;
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.dimension = dimension;
}