public class DarkOakFoliagePlacer extends FoliagePlacer
FoliagePlacer.TreeNode| Modifier and Type | Field and Description |
|---|---|
static com.mojang.serialization.Codec<DarkOakFoliagePlacer> |
CODEC |
offset, radius, randomOffset, randomRadius| Constructor and Description |
|---|
DarkOakFoliagePlacer(int radius,
int randomRadius,
int offset,
int randomOffset) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
generate(ModifiableTestableWorld world,
Random random,
TreeFeatureConfig config,
int trunkHeight,
FoliagePlacer.TreeNode treeNode,
int foliageHeight,
int radius,
Set<BlockPos> leaves,
int int2,
BlockBox blockBox)
This is the main method used to generate foliage.
|
int |
getHeight(Random random,
int trunkHeight,
TreeFeatureConfig config) |
protected FoliagePlacerType<?> |
getType() |
protected boolean |
isInvalidForLeaves(Random random,
int baseHeight,
int dx,
int dy,
int dz,
boolean bool) |
protected boolean |
method_27387(Random random,
int int2,
int int3,
int int4,
int int5,
boolean bool) |
generate, generate, getRadius, method_28846public static final com.mojang.serialization.Codec<DarkOakFoliagePlacer> CODEC
public DarkOakFoliagePlacer(int radius,
int randomRadius,
int offset,
int randomOffset)
protected FoliagePlacerType<?> getType()
getType in class FoliagePlacerprotected void generate(ModifiableTestableWorld world, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, Set<BlockPos> leaves, int int2, BlockBox blockBox)
generate in class FoliagePlacerpublic int getHeight(Random random, int trunkHeight, TreeFeatureConfig config)
getHeight in class FoliagePlacerprotected boolean method_27387(Random random, int int2, int int3, int int4, int int5, boolean bool)
method_27387 in class FoliagePlacerprotected boolean isInvalidForLeaves(Random random, int baseHeight, int dx, int dy, int dz, boolean bool)
isInvalidForLeaves in class FoliagePlacer