Expose registerEventListener in Baritone class

This commit is contained in:
Brady 2018-09-16 15:59:40 -05:00
parent 3f15451e88
commit 23779329a9
No known key found for this signature in database
GPG Key ID: 73A788379A197567

View File

@ -114,7 +114,11 @@ public enum Baritone {
public void registerBehavior(Behavior behavior) {
this.behaviors.add(behavior);
this.gameEventHandler.registerEventListener(behavior);
this.registerEventListener(behavior);
}
public void registerEventListener(IGameEventListener listener) {
this.gameEventHandler.registerEventListener(listener);
}
public final boolean isActive() {