Class LargeOakTrunkPlacer

java.lang.Object
net.minecraft.world.gen.trunk.TrunkPlacer
net.minecraft.world.gen.trunk.LargeOakTrunkPlacer

public class LargeOakTrunkPlacer extends TrunkPlacer
Mappings:
Namespace Name
named net/minecraft/world/gen/trunk/LargeOakTrunkPlacer
intermediary net/minecraft/class_5212
official ema
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<LargeOakTrunkPlacer> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_24967 Lnet/minecraft/class_5212;field_24967:Lcom/mojang/serialization/MapCodec;
      official a Lema;a:Lcom/mojang/serialization/MapCodec;
    • field_31524

      private static final double field_31524
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_31524 Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;field_31524:D
      intermediary field_31524 Lnet/minecraft/class_5212;field_31524:D
      official b Lema;b:D
    • field_31525

      private static final double field_31525
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_31525 Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;field_31525:D
      intermediary field_31525 Lnet/minecraft/class_5212;field_31525:D
      official h Lema;h:D
    • field_31526

      private static final double field_31526
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_31526 Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;field_31526:D
      intermediary field_31526 Lnet/minecraft/class_5212;field_31526:D
      official i Lema;i:D
    • field_31527

      private static final double field_31527
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_31527 Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;field_31527:D
      intermediary field_31527 Lnet/minecraft/class_5212;field_31527:D
      official j Lema;j:D
  • Constructor Details

    • LargeOakTrunkPlacer

      public LargeOakTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/gen/trunk/TrunkPlacer;<init>(III)V
      intermediary <init> Lnet/minecraft/class_5141;<init>(III)V
      official <init> Lemf;<init>(III)V
  • Method Details

    • getType

      protected TrunkPlacerType<?> getType()
      Specified by:
      getType in class TrunkPlacer
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/world/gen/trunk/TrunkPlacer;getType()Lnet/minecraft/world/gen/trunk/TrunkPlacerType;
      intermediary method_28903 Lnet/minecraft/class_5141;method_28903()Lnet/minecraft/class_5142;
      official a Lemf;a()Lemg;
    • generate

      public List<FoliagePlacer.TreeNode> generate(TestableWorld world, BiConsumer<BlockPos,BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config)
      Generates the trunk blocks and return a list of tree nodes to place foliage around
      Specified by:
      generate in class TrunkPlacer
      Mappings:
      Namespace Name Mixin selector
      named generate Lnet/minecraft/world/gen/trunk/TrunkPlacer;generate(Lnet/minecraft/world/TestableWorld;Ljava/util/function/BiConsumer;Lnet/minecraft/util/math/random/Random;ILnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;)Ljava/util/List;
      intermediary method_26991 Lnet/minecraft/class_5141;method_26991(Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Lnet/minecraft/class_5819;ILnet/minecraft/class_2338;Lnet/minecraft/class_4643;)Ljava/util/List;
      official a Lemf;a(Ldhn;Ljava/util/function/BiConsumer;Lbam;ILjh;Lejv;)Ljava/util/List;
    • makeOrCheckBranch

      private boolean makeOrCheckBranch(TestableWorld world, BiConsumer<BlockPos,BlockState> replacer, Random random, BlockPos startPos, BlockPos branchPos, boolean make, TreeFeatureConfig config)
      Mappings:
      Namespace Name Mixin selector
      named makeOrCheckBranch Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;makeOrCheckBranch(Lnet/minecraft/world/TestableWorld;Ljava/util/function/BiConsumer;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;ZLnet/minecraft/world/gen/feature/TreeFeatureConfig;)Z
      intermediary method_27393 Lnet/minecraft/class_5212;method_27393(Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;ZLnet/minecraft/class_4643;)Z
      official a Lema;a(Ldhn;Ljava/util/function/BiConsumer;Lbam;Ljh;Ljh;ZLejv;)Z
    • getLongestSide

      private int getLongestSide(BlockPos offset)
      Mappings:
      Namespace Name Mixin selector
      named getLongestSide Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;getLongestSide(Lnet/minecraft/util/math/BlockPos;)I
      intermediary method_27394 Lnet/minecraft/class_5212;method_27394(Lnet/minecraft/class_2338;)I
      official a Lema;a(Ljh;)I
    • getLogAxis

      private Direction.Axis getLogAxis(BlockPos branchStart, BlockPos branchEnd)
      Mappings:
      Namespace Name Mixin selector
      named getLogAxis Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;getLogAxis(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Direction$Axis;
      intermediary method_27395 Lnet/minecraft/class_5212;method_27395(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2350$class_2351;
      official a Lema;a(Ljh;Ljh;)Ljm$a;
    • isHighEnough

      private boolean isHighEnough(int treeHeight, int height)
      Mappings:
      Namespace Name Mixin selector
      named isHighEnough Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;isHighEnough(II)Z
      intermediary method_27391 Lnet/minecraft/class_5212;method_27391(II)Z
      official a Lema;a(II)Z
    • makeBranches

      private void makeBranches(TestableWorld world, BiConsumer<BlockPos,BlockState> replacer, Random random, int treeHeight, BlockPos startPos, List<LargeOakTrunkPlacer.BranchPosition> branchPositions, TreeFeatureConfig config)
      Mappings:
      Namespace Name Mixin selector
      named makeBranches Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;makeBranches(Lnet/minecraft/world/TestableWorld;Ljava/util/function/BiConsumer;Lnet/minecraft/util/math/random/Random;ILnet/minecraft/util/math/BlockPos;Ljava/util/List;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;)V
      intermediary method_27392 Lnet/minecraft/class_5212;method_27392(Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Lnet/minecraft/class_5819;ILnet/minecraft/class_2338;Ljava/util/List;Lnet/minecraft/class_4643;)V
      official a Lema;a(Ldhn;Ljava/util/function/BiConsumer;Lbam;ILjh;Ljava/util/List;Lejv;)V
    • shouldGenerateBranch

      private static float shouldGenerateBranch(int treeHeight, int height)
      If the returned value is greater than or equal to 0, a branch will be generated.
      Mappings:
      Namespace Name Mixin selector
      named shouldGenerateBranch Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;shouldGenerateBranch(II)F
      intermediary method_27396 Lnet/minecraft/class_5212;method_27396(II)F
      official b Lema;b(II)F