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
official cuj
intermediary net/minecraft/class_5212
named net/minecraft/world/gen/trunk/LargeOakTrunkPlacer
  • Field Details

    • CODEC

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

    • LargeOakTrunkPlacer

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

    • getType

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

      public List<FoliagePlacer.TreeNode> generate​(ModifiableTestableWorld world, Random random, int trunkHeight, BlockPos pos, Set<BlockPos> placedStates, BlockBox box, 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
      official a Lcuo;a(Lbua;Ljava/util/Random;ILfx;Ljava/util/Set;Lcwn;Lcsn;)Ljava/util/List;
      intermediary method_26991 Lnet/minecraft/class_5141;method_26991(Lnet/minecraft/class_3747;Ljava/util/Random;ILnet/minecraft/class_2338;Ljava/util/Set;Lnet/minecraft/class_3341;Lnet/minecraft/class_4643;)Ljava/util/List;
      named generate Lnet/minecraft/world/gen/trunk/TrunkPlacer;generate(Lnet/minecraft/world/ModifiableTestableWorld;Ljava/util/Random;ILnet/minecraft/util/math/BlockPos;Ljava/util/Set;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;)Ljava/util/List;
    • makeOrCheckBranch

      private boolean makeOrCheckBranch​(ModifiableTestableWorld world, Random random, BlockPos start, BlockPos end, boolean make, Set<BlockPos> placedStates, BlockBox box, TreeFeatureConfig config)
      Mappings:
      Namespace Name Mixin selector
      official a Lcuj;a(Lbua;Ljava/util/Random;Lfx;Lfx;ZLjava/util/Set;Lcwn;Lcsn;)Z
      intermediary method_27393 Lnet/minecraft/class_5212;method_27393(Lnet/minecraft/class_3747;Ljava/util/Random;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;ZLjava/util/Set;Lnet/minecraft/class_3341;Lnet/minecraft/class_4643;)Z
      named makeOrCheckBranch Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;makeOrCheckBranch(Lnet/minecraft/world/ModifiableTestableWorld;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;ZLjava/util/Set;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;)Z
    • getLongestSide

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

      private Direction.Axis getLogAxis​(BlockPos branchStart, BlockPos branchEnd)
      Mappings:
      Namespace Name Mixin selector
      official a Lcuj;a(Lfx;Lfx;)Lgc$a;
      intermediary method_27395 Lnet/minecraft/class_5212;method_27395(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2350$class_2351;
      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;
    • isHighEnough

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

      private void makeBranches​(ModifiableTestableWorld world, Random random, int treeHeight, BlockPos treePos, List<LargeOakTrunkPlacer.BranchPosition> branches, Set<BlockPos> placedStates, BlockBox box, TreeFeatureConfig config)
      Mappings:
      Namespace Name Mixin selector
      official a Lcuj;a(Lbua;Ljava/util/Random;ILfx;Ljava/util/List;Ljava/util/Set;Lcwn;Lcsn;)V
      intermediary method_27392 Lnet/minecraft/class_5212;method_27392(Lnet/minecraft/class_3747;Ljava/util/Random;ILnet/minecraft/class_2338;Ljava/util/List;Ljava/util/Set;Lnet/minecraft/class_3341;Lnet/minecraft/class_4643;)V
      named makeBranches Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;makeBranches(Lnet/minecraft/world/ModifiableTestableWorld;Ljava/util/Random;ILnet/minecraft/util/math/BlockPos;Ljava/util/List;Ljava/util/Set;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;)V
    • shouldGenerateBranch

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