public abstract class FeatureHugeTree extends FeatureAbstractTree
height, leaves, logAIR, REPLACEABLE| Constructor and Description |
|---|
FeatureHugeTree(@NonNull IntRange height,
BlockSelector log,
BlockSelector leaves) |
FeatureHugeTree(@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) |
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 |
placeCircularLeafLayer(ChunkManager level,
int x,
int y,
int z,
int radius,
BlockState block) |
protected void |
placeTrunk(ChunkManager level,
net.daporkchop.lib.random.PRandom random,
int x,
int y,
int z,
int height,
BlockState log,
BlockState leaves) |
chooseHeight, placeLeaves, selectLeaves, selectLogallNeighborsMatch, allNeighborsMatch, replaceGrassWithDirt, test, testOrLiquid, testOrLiquidpublic FeatureHugeTree(@NonNull
@NonNull IntRange height,
@NonNull
@NonNull GenerationTreeSpecies species)
public FeatureHugeTree(@NonNull
@NonNull IntRange height,
BlockSelector log,
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 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 FeatureAbstractTreeprotected void placeCircularLeafLayer(ChunkManager level, int x, int y, int z, int radius, BlockState block)
Copyright © 2020. All rights reserved.