类 LargeOakTrunkPlacer


  • public class LargeOakTrunkPlacer
    extends TrunkPlacer
    Mappings:
    Namespace Name
    official cxj
    intermediary net/minecraft/class_5212
    named net/minecraft/world/gen/trunk/LargeOakTrunkPlacer
    • 字段详细资料

      • CODEC

        public static final com.mojang.serialization.Codec<LargeOakTrunkPlacer> CODEC
        Mappings:
        Namespace Name Mixin selector
        official a Lcxj;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;
      • field_31524

        private static final double field_31524
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official b Lcxj;b:D
        intermediary field_31524 Lnet/minecraft/class_5212;field_31524:D
        named field_31524 Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;field_31524:D
      • field_31525

        private static final double field_31525
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official h Lcxj;h:D
        intermediary field_31525 Lnet/minecraft/class_5212;field_31525:D
        named field_31525 Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;field_31525:D
      • field_31526

        private static final double field_31526
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official i Lcxj;i:D
        intermediary field_31526 Lnet/minecraft/class_5212;field_31526:D
        named field_31526 Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;field_31526:D
      • field_31527

        private static final double field_31527
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official j Lcxj;j:D
        intermediary field_31527 Lnet/minecraft/class_5212;field_31527:D
        named field_31527 Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;field_31527:D
    • 构造器详细资料

      • LargeOakTrunkPlacer

        public LargeOakTrunkPlacer​(int baseHeight,
                                   int firstRandomHeight,
                                   int secondRandomHeight)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lcxo;<init>(III)V
        intermediary <init> Lnet/minecraft/class_5141;<init>(III)V
        named <init> Lnet/minecraft/world/gen/trunk/TrunkPlacer;<init>(III)V
    • 方法详细资料

      • getType

        protected TrunkPlacerType<?> getType()
        指定者:
        getType 在类中 TrunkPlacer
        Mappings:
        Namespace Name Mixin selector
        official a Lcxo;a()Lcxp;
        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 testableWorld,
                                                     BiConsumer<BlockPos,​BlockState> biConsumer,
                                                     Random random,
                                                     int int2,
                                                     BlockPos blockPos,
                                                     TreeFeatureConfig treeFeatureConfig)
        Generates the trunk blocks and return a list of tree nodes to place foliage around
        指定者:
        generate 在类中 TrunkPlacer
        Mappings:
        Namespace Name Mixin selector
        official a Lcxo;a(Lbvx;Ljava/util/function/BiConsumer;Ljava/util/Random;ILgb;Lcvi;)Ljava/util/List;
        intermediary method_26991 Lnet/minecraft/class_5141;method_26991(Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Ljava/util/Random;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;Ljava/util/Random;ILnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;)Ljava/util/List;
      • makeOrCheckBranch

        private boolean makeOrCheckBranch​(TestableWorld testableWorld,
                                          BiConsumer<BlockPos,​BlockState> biConsumer,
                                          Random random,
                                          BlockPos blockPos,
                                          BlockPos blockPos2,
                                          boolean bool,
                                          TreeFeatureConfig treeFeatureConfig)
        Mappings:
        Namespace Name Mixin selector
        official a Lcxj;a(Lbvx;Ljava/util/function/BiConsumer;Ljava/util/Random;Lgb;Lgb;ZLcvi;)Z
        intermediary method_27393 Lnet/minecraft/class_5212;method_27393(Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Ljava/util/Random;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;ZLnet/minecraft/class_4643;)Z
        named makeOrCheckBranch Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;makeOrCheckBranch(Lnet/minecraft/world/TestableWorld;Ljava/util/function/BiConsumer;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;ZLnet/minecraft/world/gen/feature/TreeFeatureConfig;)Z
      • getLongestSide

        private int getLongestSide​(BlockPos offset)
        Mappings:
        Namespace Name Mixin selector
        official a Lcxj;a(Lgb;)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 Lcxj;a(Lgb;Lgb;)Lgg$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 Lcxj;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​(TestableWorld testableWorld,
                                  BiConsumer<BlockPos,​BlockState> biConsumer,
                                  Random random,
                                  int int2,
                                  BlockPos blockPos,
                                  List<LargeOakTrunkPlacer.BranchPosition> list,
                                  TreeFeatureConfig treeFeatureConfig)
        Mappings:
        Namespace Name Mixin selector
        official a Lcxj;a(Lbvx;Ljava/util/function/BiConsumer;Ljava/util/Random;ILgb;Ljava/util/List;Lcvi;)V
        intermediary method_27392 Lnet/minecraft/class_5212;method_27392(Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Ljava/util/Random;ILnet/minecraft/class_2338;Ljava/util/List;Lnet/minecraft/class_4643;)V
        named makeBranches Lnet/minecraft/world/gen/trunk/LargeOakTrunkPlacer;makeBranches(Lnet/minecraft/world/TestableWorld;Ljava/util/function/BiConsumer;Ljava/util/Random;ILnet/minecraft/util/math/BlockPos;Ljava/util/List;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;)V
      • shouldGenerateBranch

        private static float shouldGenerateBranch​(int int2,
                                                  int int3)
        If the returned value is greater than or equal to 0, a branch will be generated.
        Mappings:
        Namespace Name Mixin selector
        official b Lcxj;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