public init
This commit is contained in:
parent
8770524679
commit
5617c595b2
@ -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();
|
||||
}
|
||||
|
@ -92,6 +92,7 @@ public class Baritone implements IBaritone {
|
||||
this.gameEventHandler = new GameEventHandler(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized void init() {
|
||||
if (initialized) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user