public class FeatureFallenTree extends ReplacingWorldFeature
| Modifier and Type | Field and Description |
|---|---|
protected @NonNull BlockState |
log |
protected @NonNull IntRange |
size |
protected double |
vineChance |
AIR, REPLACEABLE| Constructor and Description |
|---|
FeatureFallenTree() |
| 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, testOrLiquid@NonNull protected final @NonNull IntRange size
@NonNull protected final @NonNull BlockState log
protected final double vineChance
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.