public class MegaPineFoliagePlacer extends FoliagePlacer
FoliagePlacer.TreeNode| Modifier and Type | Field and Description |
|---|---|
private int |
crownHeight |
private int |
heightRange |
| Constructor and Description |
|---|
MegaPineFoliagePlacer(com.mojang.datafixers.Dynamic<T> dynamic) |
MegaPineFoliagePlacer(int radius,
int randomRadius,
int offset,
int randomOffset,
int heightRange,
int crownHeight) |
| 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)
This is the main method used to generate foliage.
|
int |
getHeight(Random random,
int trunkHeight,
TreeFeatureConfig config) |
protected boolean |
isInvalidForLeaves(Random random,
int baseHeight,
int dx,
int dy,
int dz,
boolean bool) |
<T> T |
serialize(com.mojang.datafixers.types.DynamicOps<T> ops) |
generate, generate, getRadius, method_27387public MegaPineFoliagePlacer(int radius,
int randomRadius,
int offset,
int randomOffset,
int heightRange,
int crownHeight)
public MegaPineFoliagePlacer(com.mojang.datafixers.Dynamic<T> dynamic)
protected void generate(ModifiableTestableWorld world, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, Set<BlockPos> leaves, int int2)
generate in class FoliagePlacerpublic int getHeight(Random random, int trunkHeight, TreeFeatureConfig config)
getHeight in class FoliagePlacerprotected boolean isInvalidForLeaves(Random random, int baseHeight, int dx, int dy, int dz, boolean bool)
isInvalidForLeaves in class FoliagePlacerpublic <T> T serialize(com.mojang.datafixers.types.DynamicOps<T> ops)
serialize in interface DynamicSerializableserialize in class FoliagePlacer