From f17ce87e4596f8882282528ea48790b3b9eab177 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Mon, 8 Oct 2018 21:51:19 -0700 Subject: [PATCH] publicize --- src/main/java/baritone/cache/WorldData.java | 2 +- src/main/java/baritone/pathing/calc/PathNode.java | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/baritone/cache/WorldData.java b/src/main/java/baritone/cache/WorldData.java index 19461d22..b489d933 100644 --- a/src/main/java/baritone/cache/WorldData.java +++ b/src/main/java/baritone/cache/WorldData.java @@ -42,7 +42,7 @@ public class WorldData implements IWorldData { this.waypoints = new Waypoints(directory.resolve("waypoints")); } - void onClose() { + public void onClose() { Baritone.INSTANCE.getExecutor().execute(() -> { System.out.println("Started saving the world in a new thread"); cache.save(); diff --git a/src/main/java/baritone/pathing/calc/PathNode.java b/src/main/java/baritone/pathing/calc/PathNode.java index 8e42d564..207b3d65 100644 --- a/src/main/java/baritone/pathing/calc/PathNode.java +++ b/src/main/java/baritone/pathing/calc/PathNode.java @@ -30,20 +30,20 @@ public final class PathNode { /** * The position of this node */ - final int x; - final int y; - final int z; + public final int x; + public final int y; + public final int z; /** * Cached, should always be equal to goal.heuristic(pos) */ - final double estimatedCostToGoal; + public final double estimatedCostToGoal; /** * Total cost of getting from start to here * Mutable and changed by PathFinder */ - double cost; + public double cost; /** * Should always be equal to estimatedCosttoGoal + cost @@ -55,13 +55,13 @@ public final class PathNode { * In the graph search, what previous node contributed to the cost * Mutable and changed by PathFinder */ - PathNode previous; + public PathNode previous; /** * Is this a member of the open set in A*? (only used during pathfinding) * Instead of doing a costly member check in the open set, cache membership in each node individually too. */ - boolean isOpen; + public boolean isOpen; /** * Where is this node in the array flattenization of the binary heap? Needed for decrease-key operations.