Package baritone.api.schematic
Interface IStaticSchematic
- All Superinterfaces:
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 TypeMethodDescriptiondefault net.minecraft.world.level.block.state.BlockState[]getColumn(int x, int z) Returns anBlockStatearray of sizeISchematic.heightY()which contains all desired block states in the specified vertical column.net.minecraft.world.level.block.state.BlockStategetDirect(int x, int y, int z) Gets theBlockStatefor a given position in this schematic.Methods inherited from interface baritone.api.schematic.ISchematic
desiredState, heightY, inSchematic, lengthZ, reset, size, widthX
-
Method Details
-
getDirect
Gets theBlockStatefor 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 positiony- The Y block positionz- The Z block position- Returns:
- The desired state at the specified position.
-
getColumn
Returns anBlockStatearray of sizeISchematic.heightY()which contains all desired block states in the specified vertical column. The index ofBlockStates in the array are equivalent to their Y position in the schematic.- Parameters:
x- The X column positionz- The Z column position- Returns:
- An
BlockStatearray
-