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
named net/minecraft/world/gen/trunk/CherryTrunkPlacer
intermediary net/minecraft/class_8180
official ega
  • 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
      named BRANCH_START_OFFSET_FROM_TOP_CODEC Lnet/minecraft/world/gen/trunk/CherryTrunkPlacer;BRANCH_START_OFFSET_FROM_TOP_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_42849 Lnet/minecraft/class_8180;field_42849:Lcom/mojang/serialization/Codec;
      official b Lega;b:Lcom/mojang/serialization/Codec;
    • CODEC

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

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

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

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

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

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

    • CherryTrunkPlacer

      public CherryTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight, IntProvider branchCount, IntProvider branchHorizontalLength, UniformIntProvider branchStartOffsetFromTop, IntProvider branchEndOffsetFromTop)
      Mappings:
      Namespace Name Mixin selector
      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
      intermediary <init> Lnet/minecraft/class_8180;<init>(IIILnet/minecraft/class_6017;Lnet/minecraft/class_6017;Lnet/minecraft/class_6019;Lnet/minecraft/class_6017;)V
      official <init> Lega;<init>(IIILbqa;Lbqa;Lbqg;Lbqa;)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 Legh;a()Legi;
    • 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 Legh;a(Ldcf;Ljava/util/function/BiConsumer;Lazh;ILiz;Ledz;)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
      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;
      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;
      official a Lega;a(Ldcf;Ljava/util/function/BiConsumer;Lazh;ILiz;Ledz;Ljava/util/function/Function;Lje;IZLiz$a;)Leep$a;