Interface IStaticSchematic

All Superinterfaces:
ISchematic

public interface IStaticSchematic extends ISchematic
A static schematic is capable of providing the desired state at a given position without additional context. Schematics of this type are expected to have non-varying contents.
Since:
12/24/2019
Author:
Brady
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.world.level.block.state.BlockState[]
    getColumn(int x, int z)
    Returns an BlockState array of size ISchematic.heightY() which contains all desired block states in the specified vertical column.
    net.minecraft.world.level.block.state.BlockState
    getDirect(int x, int y, int z)
    Gets the BlockState for a given position in this schematic.

    Methods inherited from interface baritone.api.schematic.ISchematic

    desiredState, heightY, inSchematic, lengthZ, reset, size, widthX
  • Method Details

    • getDirect

      net.minecraft.world.level.block.state.BlockState getDirect(int x, int y, int z)
      Gets the BlockState for a given position in this schematic. It should be guaranteed that the return value of this method will not change given that the parameters are the same.
      Parameters:
      x - The X block position
      y - The Y block position
      z - The Z block position
      Returns:
      The desired state at the specified position.
    • getColumn

      default net.minecraft.world.level.block.state.BlockState[] getColumn(int x, int z)
      Returns an BlockState array of size ISchematic.heightY() which contains all desired block states in the specified vertical column. The index of BlockStates in the array are equivalent to their Y position in the schematic.
      Parameters:
      x - The X column position
      z - The Z column position
      Returns:
      An BlockState array