Package net.minecraft.world.gen.foliage
Class LargeOakFoliagePlacer
java.lang.Object
net.minecraft.world.gen.foliage.FoliagePlacer
net.minecraft.world.gen.foliage.BlobFoliagePlacer
net.minecraft.world.gen.foliage.LargeOakFoliagePlacer
public class LargeOakFoliagePlacer extends BlobFoliagePlacer
-
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<LargeOakFoliagePlacer>CODECFields inherited from class net.minecraft.world.gen.foliage.FoliagePlacer
field_24931, offset, radius, randomOffset, randomRadius -
Constructor Summary
Constructors Constructor Description LargeOakFoliagePlacer(int int2, int int3, int int4, int int5, int int6) -
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.protected booleanisInvalidForLeaves(Random random, int baseHeight, int dx, int dy, int dz, boolean bool)Methods inherited from class net.minecraft.world.gen.foliage.BlobFoliagePlacer
getHeight, method_28838, method_28843Methods inherited from class net.minecraft.world.gen.foliage.FoliagePlacer
generate, generate, getRadius, method_27387, method_28846
-
Field Details
-
Constructor Details
-
LargeOakFoliagePlacer
public LargeOakFoliagePlacer(int int2, int int3, int int4, int int5, int int6)
-
-
Method Details
-
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.- Overrides:
generatein classBlobFoliagePlacer
-
isInvalidForLeaves
protected boolean isInvalidForLeaves(Random random, int baseHeight, int dx, int dy, int dz, boolean bool)- Overrides:
isInvalidForLeavesin classBlobFoliagePlacer
-