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
Mappings:
Namespace Name
official doe$a
intermediary net/minecraft/class_4647$class_5208
named net/minecraft/world/gen/foliage/FoliagePlacer$TreeNode
  • Field Details

    • center

      private final BlockPos center
      Mappings:
      Namespace Name Mixin selector
      official a Ldoe$a;a:Lgu;
      intermediary field_24158 Lnet/minecraft/class_4647$class_5208;field_24158:Lnet/minecraft/class_2338;
      named center Lnet/minecraft/world/gen/foliage/FoliagePlacer$TreeNode;center:Lnet/minecraft/util/math/BlockPos;
    • foliageRadius

      private final int foliageRadius
      Mappings:
      Namespace Name Mixin selector
      official b Ldoe$a;b:I
      intermediary field_24159 Lnet/minecraft/class_4647$class_5208;field_24159:I
      named foliageRadius Lnet/minecraft/world/gen/foliage/FoliagePlacer$TreeNode;foliageRadius:I
    • giantTrunk

      private final boolean giantTrunk
      Mappings:
      Namespace Name Mixin selector
      official c Ldoe$a;c:Z
      intermediary field_24160 Lnet/minecraft/class_4647$class_5208;field_24160:Z
      named giantTrunk Lnet/minecraft/world/gen/foliage/FoliagePlacer$TreeNode;giantTrunk:Z
  • Constructor Details

    • TreeNode

      public TreeNode(BlockPos center, int foliageRadius, boolean giantTrunk)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldoe$a;<init>(Lgu;IZ)V
      intermediary <init> Lnet/minecraft/class_4647$class_5208;<init>(Lnet/minecraft/class_2338;IZ)V
      named <init> Lnet/minecraft/world/gen/foliage/FoliagePlacer$TreeNode;<init>(Lnet/minecraft/util/math/BlockPos;IZ)V
  • Method Details

    • getCenter

      public BlockPos getCenter()
      Mappings:
      Namespace Name Mixin selector
      official a Ldoe$a;a()Lgu;
      intermediary method_27388 Lnet/minecraft/class_4647$class_5208;method_27388()Lnet/minecraft/class_2338;
      named getCenter Lnet/minecraft/world/gen/foliage/FoliagePlacer$TreeNode;getCenter()Lnet/minecraft/util/math/BlockPos;
    • getFoliageRadius

      public int getFoliageRadius()
      Mappings:
      Namespace Name Mixin selector
      official b Ldoe$a;b()I
      intermediary method_27389 Lnet/minecraft/class_4647$class_5208;method_27389()I
      named getFoliageRadius Lnet/minecraft/world/gen/foliage/FoliagePlacer$TreeNode;getFoliageRadius()I
    • isGiantTrunk

      public boolean isGiantTrunk()
      Whether this node is the top of a giant (2x2 block) trunk
      Mappings:
      Namespace Name Mixin selector
      official c Ldoe$a;c()Z
      intermediary method_27390 Lnet/minecraft/class_4647$class_5208;method_27390()Z
      named isGiantTrunk Lnet/minecraft/world/gen/foliage/FoliagePlacer$TreeNode;isGiantTrunk()Z