Create IPathingBehavior and expose all behaviors

This is still a biiiiiig WIP
This commit is contained in:
Brady
2018-09-23 18:29:03 -05:00
parent 62b8bc0f47
commit 4ac2ade7c6
25 changed files with 200 additions and 17 deletions

View File

@@ -17,6 +17,7 @@
package baritone;
import baritone.api.BaritoneAPI;
import baritone.behavior.Behavior;
import baritone.api.event.listener.IGameEventListener;
import baritone.behavior.*;
@@ -89,6 +90,16 @@ public enum Baritone {
registerBehavior(LocationTrackingBehavior.INSTANCE);
registerBehavior(FollowBehavior.INSTANCE);
registerBehavior(MineBehavior.INSTANCE);
// TODO: Clean this up
// Maybe combine this call in someway with the registerBehavior calls?
BaritoneAPI.registerDefaultBehaviors(
FollowBehavior.INSTANCE,
LookBehavior.INSTANCE,
MemoryBehavior.INSTANCE,
MineBehavior.INSTANCE,
PathingBehavior.INSTANCE
);
}
this.dir = new File(Minecraft.getMinecraft().gameDir, "baritone");
if (!Files.exists(dir.toPath())) {