public class FeatureLargeOakTree extends FeatureNormalTree
| Modifier and Type | Field and Description |
|---|---|
protected double |
chance |
static IntRange |
DEFAULT_HEIGHT |
protected IntRange |
largeHeight |
height, leaves, logAIR, REPLACEABLE| Constructor and Description |
|---|
FeatureLargeOakTree(@NonNull IntRange normalHeight,
@NonNull BlockSelector wood,
@NonNull BlockSelector leaves,
double chance,
@NonNull IntRange largeHeight) |
FeatureLargeOakTree(@NonNull IntRange normalHeight,
@NonNull GenerationTreeSpecies species,
double chance,
@NonNull IntRange largeHeight) |
| 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.
|
canPlace, finish, placeLeaves, placeTrunkchooseHeight, selectLeaves, selectLogallNeighborsMatch, allNeighborsMatch, replaceGrassWithDirt, test, testOrLiquid, testOrLiquidpublic static final IntRange DEFAULT_HEIGHT
protected final double chance
protected final IntRange largeHeight
public FeatureLargeOakTree(@NonNull
@NonNull IntRange normalHeight,
@NonNull
@NonNull GenerationTreeSpecies species,
double chance,
@NonNull
@NonNull IntRange largeHeight)
public FeatureLargeOakTree(@NonNull
@NonNull IntRange normalHeight,
@NonNull
@NonNull BlockSelector wood,
@NonNull
@NonNull BlockSelector leaves,
double chance,
@NonNull
@NonNull IntRange largeHeight)
public boolean place(ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z)
WorldFeatureplace in interface WorldFeatureplace in class FeatureAbstractTreelevel - 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.