Package baritone.api.process
Interface IBuilderProcess
- All Superinterfaces:
IBaritoneProcess
- Since:
- 1/15/2019
- Author:
- Brady
-
Field Summary
Fields inherited from interface baritone.api.process.IBaritoneProcess
DEFAULT_PRIORITY -
Method Summary
Modifier and TypeMethodDescriptionvoidbuild(String name, ISchematic schematic, net.minecraft.core.Vec3i origin) Requests a build for the specified schematic, labeled as specified, with the specified origin.booleanRequests a build for the specified schematic, labeled as specified, with the specified origin.default booleanDeprecated.voidbuildOpenLitematic(int i) voidvoidclearArea(net.minecraft.core.BlockPos corner1, net.minecraft.core.BlockPos corner2) List<net.minecraft.world.level.block.state.BlockState> Returns the upper bound of the current mining layer if mineInLayers is true.Returns the lower bound of the current mining layer if mineInLayers is true.booleanisPaused()voidpause()voidresume()Methods inherited from interface baritone.api.process.IBaritoneProcess
displayName, displayName0, isActive, isTemporary, onLostControl, onTick, priority
-
Method Details
-
build
Requests a build for the specified schematic, labeled as specified, with the specified origin.- Parameters:
name- A user-friendly name for the schematicschematic- The object representation of the schematicorigin- The origin position of the schematic being built
-
build
Requests a build for the specified schematic, labeled as specified, with the specified origin.- Parameters:
name- A user-friendly name for the schematicschematic- The file path of the schematicorigin- The origin position of the schematic being built- Returns:
- Whether or not the schematic was able to load from file
-
build
Deprecated. -
buildOpenSchematic
void buildOpenSchematic() -
buildOpenLitematic
-
pause
void pause() -
isPaused
boolean isPaused() -
resume
void resume() -
clearArea
-
getApproxPlaceable
List<net.minecraft.world.level.block.state.BlockState> getApproxPlaceable()- Returns:
- A list of block states that are estimated to be placeable by this builder process. You can use this in schematics, for example, to pick a state that the builder process will be happy with, because any variation will cause it to give up. This is updated every tick, but only while the builder process is active.
-
getMinLayer
Returns the lower bound of the current mining layer if mineInLayers is true. If mineInLayers is false, this will return an empty optional.- Returns:
- The lower bound of the current mining layer
-
getMaxLayer
Returns the upper bound of the current mining layer if mineInLayers is true. If mineInLayers is false, this will return an empty optional.- Returns:
- The upper bound of the current mining layer
-