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 block 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,
int x,
int y,
int z,
int incX,
int incZ) |
boolean |
generate(net.minecraft.world.World world,
java.util.Random random,
int x,
int y,
int z)
Generate this structure.
|
protected abstract void |
generateLayers() |
protected void |
postBuildCorner(net.minecraft.world.World world,
int x,
int y,
int z,
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,
int x,
int y,
int z,
int incX,
int incZ)
protected void postBuildCorner(net.minecraft.world.World world,
int x,
int y,
int z,
int incX,
int incZ)
public boolean generate(net.minecraft.world.World world,
java.util.Random random,
int x,
int y,
int z)
world - The world.random - Random object.x - X center coordinate.y - Y center coordinate.z - Z center coordinate.