Class CherryTrunkPlacer

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

public class CherryTrunkPlacer extends TrunkPlacer
Mappings:
Namespace Name
official dph
intermediary net/minecraft/class_8180
named net/minecraft/world/gen/trunk/CherryTrunkPlacer
  • Field Details

    • BRANCH_START_OFFSET_FROM_TOP_CODEC

      private static final com.mojang.serialization.Codec<UniformIntProvider> BRANCH_START_OFFSET_FROM_TOP_CODEC
      Mappings:
      Namespace Name Mixin selector
      official b Ldph;b:Lcom/mojang/serialization/Codec;
      intermediary field_42849 Lnet/minecraft/class_8180;field_42849:Lcom/mojang/serialization/Codec;
      named BRANCH_START_OFFSET_FROM_TOP_CODEC Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;BRANCH_START_OFFSET_FROM_TOP_CODEC:Lcom/mojang/serialization/Codec;
    • CODEC

      public static final com.mojang.serialization.Codec<CherryTrunkPlacer> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Ldph;a:Lcom/mojang/serialization/Codec;
      intermediary field_42848 Lnet/minecraft/class_8180;field_42848:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;CODEC:Lcom/mojang/serialization/Codec;
    • branchCount

      private final IntProvider branchCount
      Mappings:
      Namespace Name Mixin selector
      official h Ldph;h:Lbcz;
      intermediary field_42850 Lnet/minecraft/class_8180;field_42850:Lnet/minecraft/class_6017;
      named branchCount Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;branchCount:Lnet/minecraft/util/math/intprovider/IntProvider;
    • branchHorizontalLength

      private final IntProvider branchHorizontalLength
      Mappings:
      Namespace Name Mixin selector
      official i Ldph;i:Lbcz;
      intermediary field_42851 Lnet/minecraft/class_8180;field_42851:Lnet/minecraft/class_6017;
      named branchHorizontalLength Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;branchHorizontalLength:Lnet/minecraft/util/math/intprovider/IntProvider;
    • branchStartOffsetFromTop

      private final UniformIntProvider branchStartOffsetFromTop
      Mappings:
      Namespace Name Mixin selector
      official j Ldph;j:Lbdf;
      intermediary field_42852 Lnet/minecraft/class_8180;field_42852:Lnet/minecraft/class_6019;
      named branchStartOffsetFromTop Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;branchStartOffsetFromTop:Lnet/minecraft/util/math/intprovider/UniformIntProvider;
    • secondBranchStartOffsetFromTop

      private final UniformIntProvider secondBranchStartOffsetFromTop
      Mappings:
      Namespace Name Mixin selector
      official k Ldph;k:Lbdf;
      intermediary field_42853 Lnet/minecraft/class_8180;field_42853:Lnet/minecraft/class_6019;
      named secondBranchStartOffsetFromTop Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;secondBranchStartOffsetFromTop:Lnet/minecraft/util/math/intprovider/UniformIntProvider;
    • branchEndOffsetFromTop

      private final IntProvider branchEndOffsetFromTop
      Mappings:
      Namespace Name Mixin selector
      official l Ldph;l:Lbcz;
      intermediary field_42854 Lnet/minecraft/class_8180;field_42854:Lnet/minecraft/class_6017;
      named branchEndOffsetFromTop Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;branchEndOffsetFromTop:Lnet/minecraft/util/math/intprovider/IntProvider;
  • Constructor Details

    • CherryTrunkPlacer

      public CherryTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight, IntProvider branchCount, IntProvider branchHorizontalLength, UniformIntProvider branchStartOffsetFromTop, IntProvider branchEndOffsetFromTop)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldph;<init>(IIILbcz;Lbcz;Lbdf;Lbcz;)V
      intermediary <init> Lnet/minecraft/class_8180;<init>(IIILnet/minecraft/class_6017;Lnet/minecraft/class_6017;Lnet/minecraft/class_6019;Lnet/minecraft/class_6017;)V
      named <init> Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;<init>(IIILnet/minecraft/util/math/intprovider/IntProvider;Lnet/minecraft/util/math/intprovider/IntProvider;Lnet/minecraft/util/math/intprovider/UniformIntProvider;Lnet/minecraft/util/math/intprovider/IntProvider;)V
  • Method Details

    • getType

      protected TrunkPlacerType<?> getType()
      Specified by:
      getType in class TrunkPlacer
      Mappings:
      Namespace Name Mixin selector
      official a Ldpo;a()Ldpp;
      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(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
      official a Ldpo;a(Lcml;Ljava/util/function/BiConsumer;Lapd;ILgu;Ldng;)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;
      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;
    • generateBranch

      private FoliagePlacer.TreeNode generateBranch(TestableWorld world, BiConsumer<BlockPos,BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config, Function<BlockState,BlockState> withAxisFunction, Direction direction, int branchStartOffset, boolean branchBelowHeight, BlockPos.Mutable mutablePos)
      Mappings:
      Namespace Name Mixin selector
      official a Ldph;a(Lcml;Ljava/util/function/BiConsumer;Lapd;ILgu;Ldng;Ljava/util/function/Function;Lha;IZLgu$a;)Ldnw$a;
      intermediary method_49249 Lnet/minecraft/class_8180;method_49249(Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Lnet/minecraft/class_5819;ILnet/minecraft/class_2338;Lnet/minecraft/class_4643;Ljava/util/function/Function;Lnet/minecraft/class_2350;IZLnet/minecraft/class_2338$class_2339;)Lnet/minecraft/class_4647$class_5208;
      named generateBranch Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;generateBranch(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/function/Function;Lnet/minecraft/util/math/Direction;IZLnet/minecraft/util/math/BlockPos$Mutable;)Lnet/minecraft/world/gen/foliage/FoliagePlacer$TreeNode;