public class FeatureSpruceTree extends FeatureNormalTree
| Modifier and Type | Field and Description |
|---|---|
static IntRange |
DEFAULT_HEIGHT |
height, leaves, logAIR, REPLACEABLE| Constructor and Description |
|---|
FeatureSpruceTree(@NonNull IntRange height,
@NonNull BlockSelector wood,
@NonNull BlockSelector leaves) |
FeatureSpruceTree(@NonNull IntRange height,
@NonNull GenerationTreeSpecies species) |
| 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
public FeatureSpruceTree(@NonNull
@NonNull IntRange height,
@NonNull
@NonNull GenerationTreeSpecies species)
public FeatureSpruceTree(@NonNull
@NonNull IntRange height,
@NonNull
@NonNull BlockSelector wood,
@NonNull
@NonNull BlockSelector leaves)
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.