Package net.minecraft.world.gen.foliage
Class DarkOakFoliagePlacer
java.lang.Object
net.minecraft.world.gen.foliage.FoliagePlacer
net.minecraft.world.gen.foliage.DarkOakFoliagePlacer
public class DarkOakFoliagePlacer extends FoliagePlacer
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.gen.foliage.FoliagePlacer
FoliagePlacer.TreeNode -
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<DarkOakFoliagePlacer>CODECFields inherited from class net.minecraft.world.gen.foliage.FoliagePlacer
field_24931, offset, radius, randomOffset, randomRadius -
Constructor Summary
Constructors Constructor Description DarkOakFoliagePlacer(int radius, int randomRadius, int offset, int randomOffset) -
Method Summary
Modifier and Type Method Description protected voidgenerate(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.intgetHeight(Random random, int trunkHeight, TreeFeatureConfig config)protected booleanisInvalidForLeaves(Random random, int baseHeight, int dx, int dy, int dz, boolean bool)protected booleanmethod_27387(Random random, int int2, int int3, int int4, int int5, boolean bool)protected FoliagePlacerType<?>method_28843()Methods inherited from class net.minecraft.world.gen.foliage.FoliagePlacer
generate, generate, getRadius, method_28846
-
Field Details
-
Constructor Details
-
DarkOakFoliagePlacer
public DarkOakFoliagePlacer(int radius, int randomRadius, int offset, int randomOffset)
-
-
Method Details
-
method_28843
- Specified by:
method_28843in classFoliagePlacer
-
generate
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.- Specified by:
generatein classFoliagePlacer
-
getHeight
- Specified by:
getHeightin classFoliagePlacer
-
method_27387
protected boolean method_27387(Random random, int int2, int int3, int int4, int int5, boolean bool)- Overrides:
method_27387in classFoliagePlacer
-
isInvalidForLeaves
protected boolean isInvalidForLeaves(Random random, int baseHeight, int dx, int dy, int dz, boolean bool)- Specified by:
isInvalidForLeavesin classFoliagePlacer
-