add a way to pause builder
This commit is contained in:
parent
fcadf68c90
commit
236d02cb47
@ -89,6 +89,10 @@ public class BuilderProcess extends BaritoneProcessHelper implements IBuilderPro
|
|||||||
paused = false;
|
paused = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void pause() {
|
||||||
|
paused = true;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean build(String name, File schematic, Vec3i origin) {
|
public boolean build(String name, File schematic, Vec3i origin) {
|
||||||
NBTTagCompound tag;
|
NBTTagCompound tag;
|
||||||
|
@ -358,6 +358,11 @@ public class ExampleBaritoneControl extends Behavior implements Helper {
|
|||||||
logDirect("resumed");
|
logDirect("resumed");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (msg.equals("pause")) {
|
||||||
|
baritone.getBuilderProcess().pause();
|
||||||
|
logDirect("paused");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (msg.equals("reset")) {
|
if (msg.equals("reset")) {
|
||||||
for (Settings.Setting setting : Baritone.settings().allSettings) {
|
for (Settings.Setting setting : Baritone.settings().allSettings) {
|
||||||
setting.reset();
|
setting.reset();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user