public class JungleFoliagePlacer extends FoliagePlacer
FoliagePlacer.TreeNode| Modifier and Type | Field and Description |
|---|---|
protected int |
height |
| Constructor and Description |
|---|
JungleFoliagePlacer(com.mojang.datafixers.Dynamic<T> dynamic) |
JungleFoliagePlacer(int radius,
int randomRadius,
int offset,
int randomOffset,
int height) |
| 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 JungleFoliagePlacer(int radius,
int randomRadius,
int offset,
int randomOffset,
int height)
public JungleFoliagePlacer(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