public class DarkOakFoliagePlacer extends FoliagePlacer
FoliagePlacer.TreeNode| Constructor and Description |
|---|
DarkOakFoliagePlacer(com.mojang.datafixers.Dynamic<T> dynamic) |
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)
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) |
protected boolean |
method_27387(Random random,
int int2,
int int3,
int int4,
int int5,
boolean bool) |
<T> T |
serialize(com.mojang.datafixers.types.DynamicOps<T> ops) |
generate, generate, getRadiuspublic DarkOakFoliagePlacer(int radius,
int randomRadius,
int offset,
int randomOffset)
public DarkOakFoliagePlacer(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 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 FoliagePlacerpublic <T> T serialize(com.mojang.datafixers.types.DynamicOps<T> ops)
serialize in interface DynamicSerializableserialize in class FoliagePlacer