public abstract class QuarterSymmetricalStructure
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
QuarterSymmetricalStructure.BlockWrapper
This is a wrapper class, which wraps around a
Block and
pairs with it the metadata for that specific blockState instance. |
static interface |
QuarterSymmetricalStructure.IBlockAction |
| Modifier and Type | Field and Description |
|---|---|
protected int |
quarterHeight |
protected int |
quarterWidth |
| Constructor and Description |
|---|
QuarterSymmetricalStructure(int quarterWidth,
int quarterHeight)
Make a new instance with the given dimensions (only one height layer).
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addLayer(int height,
QuarterSymmetricalStructure.BlockWrapper[] layer) |
protected void |
buildCorner(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
int incX,
int incZ) |
boolean |
generate(net.minecraft.world.World world,
java.util.Random random,
net.minecraft.util.math.BlockPos blockPos)
Generate this structure.
|
protected abstract void |
generateLayers() |
protected void |
postBuildCorner(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int incX,
int incZ) |
public QuarterSymmetricalStructure(int quarterWidth,
int quarterHeight)
quarterWidth - Width of the quarter.quarterHeight - Height of the quarter.protected abstract void generateLayers()
protected void addLayer(int height,
QuarterSymmetricalStructure.BlockWrapper[] layer)
protected void buildCorner(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
int incX,
int incZ)
protected void postBuildCorner(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int incX,
int incZ)
public boolean generate(net.minecraft.world.World world,
java.util.Random random,
net.minecraft.util.math.BlockPos blockPos)
world - The world.random - Random object.blockPos - Center coordinate.