public class CompositeSchematic extends AbstractSchematic
x, y, z
Constructor and Description |
---|
CompositeSchematic(int x,
int y,
int z) |
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?
|
void |
put(ISchematic extra,
int x,
int y,
int z) |
void |
reset()
Resets possible caches to avoid wrong behavior when moving the schematic around
|
heightY, lengthZ, widthX
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
size
public CompositeSchematic(int x, int y, int z)
public void put(ISchematic extra, int x, int y, int z)
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 placeablepublic void reset()
ISchematic