public init

This commit is contained in:
Leijurv 2019-02-19 14:43:48 -08:00
parent 8770524679
commit 5617c595b2
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
2 changed files with 8 additions and 0 deletions

View File

@ -76,4 +76,11 @@ public interface IBaritone {
IPlayerContext getPlayerContext();
IEventBus getGameEventHandler();
/**
* Call as soon as Minecraft is ready.
* <p>
* Or whenever your overeager utility client wants.
*/
void init();
}

View File

@ -92,6 +92,7 @@ public class Baritone implements IBaritone {
this.gameEventHandler = new GameEventHandler(this);
}
@Override
public synchronized void init() {
if (initialized) {
return;