Interface IBuilderProcess

All Superinterfaces:
IBaritoneProcess

public interface IBuilderProcess extends IBaritoneProcess
Since:
1/15/2019
Author:
Brady
  • Method Details

    • build

      void build(String name, ISchematic schematic, net.minecraft.core.Vec3i origin)
      Requests a build for the specified schematic, labeled as specified, with the specified origin.
      Parameters:
      name - A user-friendly name for the schematic
      schematic - The object representation of the schematic
      origin - The origin position of the schematic being built
    • build

      boolean build(String name, File schematic, net.minecraft.core.Vec3i origin)
      Requests a build for the specified schematic, labeled as specified, with the specified origin.
      Parameters:
      name - A user-friendly name for the schematic
      schematic - The file path of the schematic
      origin - The origin position of the schematic being built
      Returns:
      Whether or not the schematic was able to load from file
    • build

      @Deprecated default boolean build(String schematicFile, net.minecraft.core.BlockPos origin)
      Deprecated.
    • buildOpenSchematic

    • buildOpenLitematic

      void buildOpenLitematic(int i)
    • pause

      void pause()
    • isPaused

      boolean isPaused()
    • resume

      void resume()
    • clearArea

      void clearArea(net.minecraft.core.BlockPos corner1, net.minecraft.core.BlockPos corner2)
    • 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