Class FoliagePlacer.TreeNode

java.lang.Object
net.minecraft.world.gen.foliage.FoliagePlacer.TreeNode
Enclosing class:
FoliagePlacer

public static final class FoliagePlacer.TreeNode
extends Object
A point on a tree to generate foliage around
  • Field Details

    • center

      private final BlockPos center
    • foliageRadius

      private final int foliageRadius
    • giantTrunk

      private final boolean giantTrunk
  • Constructor Details

    • TreeNode

      public TreeNode​(BlockPos center, int foliageRadius, boolean giantTrunk)
  • Method Details

    • getCenter

      public BlockPos getCenter()
    • getFoliageRadius

      public int getFoliageRadius()
    • isGiantTrunk

      public boolean isGiantTrunk()
      Whether this node is the top of a giant (2x2 block) trunk