From 8445b29ee10c1dbb133acb9a8038a37524ba25f2 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Thu, 2 Aug 2018 00:04:14 -0400 Subject: [PATCH] IPath --- src/main/java/baritone/bot/pathing/IPath.java | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/main/java/baritone/bot/pathing/IPath.java b/src/main/java/baritone/bot/pathing/IPath.java index f306b879..f97869dd 100644 --- a/src/main/java/baritone/bot/pathing/IPath.java +++ b/src/main/java/baritone/bot/pathing/IPath.java @@ -1,4 +1,37 @@ package baritone.bot.pathing; +import net.minecraft.util.math.BlockPos; + +import java.util.Collection; +import java.util.List; + public interface IPath { + + /** + * All positions along the way. + * Should begin with the same as getSrc and end with the same as getDest + */ + List positions(); + + /** + * Where does this path start + */ + BlockPos getSrc(); + + /** + * Where does this path end + */ + BlockPos getDest(); + + /** + * For rendering purposes, what blocks should be highlighted in red + * @return an unordered collection of positions + */ + Collection getBlocksToMine(); + + /** + * For rendering purposes, what blocks should be highlighted in green + * @return an unordered collection of positions + */ + Collection getBlocksToPlace(); }