public interface ISchematic
Modifier and Type | Method and Description |
---|---|
net.minecraft.block.state.IBlockState |
desiredState(int x,
int y,
int z,
net.minecraft.block.state.IBlockState current,
java.util.List<net.minecraft.block.state.IBlockState> approxPlaceable)
Returns the desired block state at a given (X, Y, Z) position relative to the origin (0, 0, 0).
|
int |
heightY() |
default boolean |
inSchematic(int x,
int y,
int z,
net.minecraft.block.state.IBlockState currentState)
Does the block at this coordinate matter to the schematic?
|
int |
lengthZ() |
default void |
reset()
Resets possible caches to avoid wrong behavior when moving the schematic around
|
default int |
size(net.minecraft.util.EnumFacing.Axis axis) |
int |
widthX() |
default boolean inSchematic(int x, int y, int z, net.minecraft.block.state.IBlockState currentState)
Normally just a check for if the coordinate is in the cube.
However, in the case of something like a map art, anything that's below the level of the map art doesn't matter, so this function should return false in that case. (i.e. it doesn't really have to be air below the art blocks)
x
- The x position of the block, relative to the originy
- The y position of the block, relative to the originz
- The z position of the block, relative to the origincurrentState
- The current state of that block in the world, or nulldefault int size(net.minecraft.util.EnumFacing.Axis axis)
net.minecraft.block.state.IBlockState desiredState(int x, int y, int z, net.minecraft.block.state.IBlockState current, java.util.List<net.minecraft.block.state.IBlockState> approxPlaceable)
x
- The x position of the block, relative to the originy
- The y position of the block, relative to the originz
- The z position of the block, relative to the origincurrent
- The current state of that block in the world, or nullapproxPlaceable
- The list of blockstates estimated to be placeabledefault void reset()
int widthX()
int heightY()
int lengthZ()