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