public class FeatureChorusTree extends ReplacingWorldFeature
| Modifier and Type | Field and Description |
|---|---|
protected IntRange |
branchHeight |
static IntRange |
DEFAULT_BRANCH_HEIGHT |
static int |
DEFAULT_MAX_OVERHANG |
static int |
DEFAULT_MAX_RECURSION |
protected int |
maxOverhang |
protected int |
maxRecursion |
AIR, REPLACEABLE| Constructor and Description |
|---|
FeatureChorusTree(@NonNull IntRange branchHeight,
int maxRecursion,
int maxOverhang) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
place(ChunkManager level,
net.daporkchop.lib.random.PRandom random,
int x,
int y,
int z)
Tries to place this feature into the given level at the given position.
|
allNeighborsMatch, allNeighborsMatch, replaceGrassWithDirt, test, testOrLiquid, testOrLiquidpublic static final IntRange DEFAULT_BRANCH_HEIGHT
public static final int DEFAULT_MAX_RECURSION
public static final int DEFAULT_MAX_OVERHANG
protected final IntRange branchHeight
protected final int maxRecursion
protected final int maxOverhang
public FeatureChorusTree(@NonNull
@NonNull IntRange branchHeight,
int maxRecursion,
int maxOverhang)
public boolean place(ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z)
WorldFeaturelevel - the level to place the feature intorandom - an instance of PRandom for generating random numbersx - the X coordinate to generate the feature aty - the Y coordinate to generate the feature atz - the Z coordinate to generate the feature atCopyright © 2020. All rights reserved.