public abstract class MaskSchematic extends AbstractSchematic
x, y, z
Constructor and Description |
---|
MaskSchematic(ISchematic schematic) |
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).
|
boolean |
inSchematic(int x,
int y,
int z,
net.minecraft.block.state.IBlockState currentState)
Does the block at this coordinate matter to the schematic?
|
protected abstract boolean |
partOfMask(int x,
int y,
int z,
net.minecraft.block.state.IBlockState currentState) |
heightY, lengthZ, widthX
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reset, size
public MaskSchematic(ISchematic schematic)
protected abstract boolean partOfMask(int x, int y, int z, net.minecraft.block.state.IBlockState currentState)
public boolean inSchematic(int x, int y, int z, net.minecraft.block.state.IBlockState currentState)
ISchematic
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 nullpublic 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)
ISchematic
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 placeable