public class FeatureSavannaTree extends FeatureNormalTree
| Modifier and Type | Field and Description |
|---|---|
static IntRange |
DEFAULT_HEIGHT |
height, leaves, logAIR, REPLACEABLE| Constructor and Description |
|---|
FeatureSavannaTree(@NonNull IntRange height,
@NonNull BlockSelector wood,
@NonNull BlockSelector leaves) |
FeatureSavannaTree(@NonNull IntRange height,
@NonNull GenerationTreeSpecies species) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canPlace(ChunkManager level,
net.daporkchop.lib.random.PRandom random,
int x,
int y,
int z,
int height) |
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.
|
protected void |
placeLeaves(ChunkManager level,
net.daporkchop.lib.random.PRandom random,
int x,
int y,
int z,
int height,
BlockState log,
BlockState leaves) |
finish, placeTrunkchooseHeight, selectLeaves, selectLogallNeighborsMatch, allNeighborsMatch, replaceGrassWithDirt, test, testOrLiquid, testOrLiquidpublic static final IntRange DEFAULT_HEIGHT
public FeatureSavannaTree(@NonNull
@NonNull IntRange height,
@NonNull
@NonNull GenerationTreeSpecies species)
public FeatureSavannaTree(@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 atprotected boolean canPlace(ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height)
canPlace in class FeatureNormalTreeprotected void placeLeaves(ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height, BlockState log, BlockState leaves)
placeLeaves in class FeatureNormalTreeCopyright © 2020. All rights reserved.