Skip to content

Commit 5617c59

Browse files
committed
public init
1 parent 8770524 commit 5617c59

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/api/java/baritone/api/IBaritone.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,11 @@ public interface IBaritone {
7676
IPlayerContext getPlayerContext();
7777

7878
IEventBus getGameEventHandler();
79+
80+
/**
81+
* Call as soon as Minecraft is ready.
82+
* <p>
83+
* Or whenever your overeager utility client wants.
84+
*/
85+
void init();
7986
}

src/main/java/baritone/Baritone.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ public class Baritone implements IBaritone {
9292
this.gameEventHandler = new GameEventHandler(this);
9393
}
9494

95+
@Override
9596
public synchronized void init() {
9697
if (initialized) {
9798
return;

0 commit comments

Comments
 (0)