类 TrunkPlacer

    • 字段详细资料

      • TYPE_CODEC

        public static final com.mojang.serialization.Codec<TrunkPlacer> TYPE_CODEC
        Mappings:
        Namespace Name Mixin selector
        official c Lcxo;c:Lcom/mojang/serialization/Codec;
        intermediary field_24972 Lnet/minecraft/class_5141;field_24972:Lcom/mojang/serialization/Codec;
        named TYPE_CODEC Lnet/minecraft/world/gen/trunk/TrunkPlacer;TYPE_CODEC:Lcom/mojang/serialization/Codec;
      • field_31528

        private static final int field_31528
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official a Lcxo;a:I
        intermediary field_31528 Lnet/minecraft/class_5141;field_31528:I
        named field_31528 Lnet/minecraft/world/gen/trunk/TrunkPlacer;field_31528:I
      • field_31529

        private static final int field_31529
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official b Lcxo;b:I
        intermediary field_31529 Lnet/minecraft/class_5141;field_31529:I
        named field_31529 Lnet/minecraft/world/gen/trunk/TrunkPlacer;field_31529:I
      • field_31530

        public static final int field_31530
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official d Lcxo;d:I
        intermediary field_31530 Lnet/minecraft/class_5141;field_31530:I
        named field_31530 Lnet/minecraft/world/gen/trunk/TrunkPlacer;field_31530:I
      • baseHeight

        protected final int baseHeight
        Mappings:
        Namespace Name Mixin selector
        official e Lcxo;e:I
        intermediary field_23760 Lnet/minecraft/class_5141;field_23760:I
        named baseHeight Lnet/minecraft/world/gen/trunk/TrunkPlacer;baseHeight:I
      • firstRandomHeight

        protected final int firstRandomHeight
        Mappings:
        Namespace Name Mixin selector
        official f Lcxo;f:I
        intermediary field_23761 Lnet/minecraft/class_5141;field_23761:I
        named firstRandomHeight Lnet/minecraft/world/gen/trunk/TrunkPlacer;firstRandomHeight:I
      • secondRandomHeight

        protected final int secondRandomHeight
        Mappings:
        Namespace Name Mixin selector
        official g Lcxo;g:I
        intermediary field_23762 Lnet/minecraft/class_5141;field_23762:I
        named secondRandomHeight Lnet/minecraft/world/gen/trunk/TrunkPlacer;secondRandomHeight:I
    • 构造器详细资料

      • TrunkPlacer

        public TrunkPlacer​(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
    • 方法详细资料

      • fillTrunkPlacerFields

        protected static <P extends TrunkPlacer> com.mojang.datafixers.Products.P3<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,​Integer,​Integer,​Integer> fillTrunkPlacerFields​(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> instance)
        Mappings:
        Namespace Name Mixin selector
        official a Lcxo;a(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P3;
        intermediary method_28904 Lnet/minecraft/class_5141;method_28904(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P3;
        named fillTrunkPlacerFields Lnet/minecraft/world/gen/trunk/TrunkPlacer;fillTrunkPlacerFields(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P3;
      • getType

        protected abstract TrunkPlacerType<?> getType()
        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 abstract 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
        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;
      • getHeight

        public int getHeight​(Random random)
        Mappings:
        Namespace Name Mixin selector
        official a Lcxo;a(Ljava/util/Random;)I
        intermediary method_26993 Lnet/minecraft/class_5141;method_26993(Ljava/util/Random;)I
        named getHeight Lnet/minecraft/world/gen/trunk/TrunkPlacer;getHeight(Ljava/util/Random;)I
      • canGenerate

        private static boolean canGenerate​(TestableWorld world,
                                           BlockPos pos)
        Mappings:
        Namespace Name Mixin selector
        official a Lcxo;a(Lbvx;Lgb;)Z
        intermediary method_27403 Lnet/minecraft/class_5141;method_27403(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;)Z
        named canGenerate Lnet/minecraft/world/gen/trunk/TrunkPlacer;canGenerate(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;)Z
      • setToDirt

        protected static void setToDirt​(TestableWorld testableWorld,
                                        BiConsumer<BlockPos,​BlockState> biConsumer,
                                        Random random,
                                        BlockPos blockPos,
                                        TreeFeatureConfig treeFeatureConfig)
        Mappings:
        Namespace Name Mixin selector
        official a Lcxo;a(Lbvx;Ljava/util/function/BiConsumer;Ljava/util/Random;Lgb;Lcvi;)V
        intermediary method_27400 Lnet/minecraft/class_5141;method_27400(Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Ljava/util/Random;Lnet/minecraft/class_2338;Lnet/minecraft/class_4643;)V
        named setToDirt Lnet/minecraft/world/gen/trunk/TrunkPlacer;setToDirt(Lnet/minecraft/world/TestableWorld;Ljava/util/function/BiConsumer;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;)V
      • method_35375

        protected static boolean method_35375​(TestableWorld testableWorld,
                                              BiConsumer<BlockPos,​BlockState> biConsumer,
                                              Random random,
                                              BlockPos blockPos,
                                              TreeFeatureConfig treeFeatureConfig)
        Mappings:
        Namespace Name Mixin selector
        official b Lcxo;b(Lbvx;Ljava/util/function/BiConsumer;Ljava/util/Random;Lgb;Lcvi;)Z
        intermediary method_35375 Lnet/minecraft/class_5141;method_35375(Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Ljava/util/Random;Lnet/minecraft/class_2338;Lnet/minecraft/class_4643;)Z
        named method_35375 Lnet/minecraft/world/gen/trunk/TrunkPlacer;method_35375(Lnet/minecraft/world/TestableWorld;Ljava/util/function/BiConsumer;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;)Z
      • getAndSetState

        protected static boolean getAndSetState​(TestableWorld testableWorld,
                                                BiConsumer<BlockPos,​BlockState> biConsumer,
                                                Random random,
                                                BlockPos blockPos,
                                                TreeFeatureConfig treeFeatureConfig,
                                                Function<BlockState,​BlockState> function)
        Mappings:
        Namespace Name Mixin selector
        official a Lcxo;a(Lbvx;Ljava/util/function/BiConsumer;Ljava/util/Random;Lgb;Lcvi;Ljava/util/function/Function;)Z
        intermediary method_27402 Lnet/minecraft/class_5141;method_27402(Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Ljava/util/Random;Lnet/minecraft/class_2338;Lnet/minecraft/class_4643;Ljava/util/function/Function;)Z
        named getAndSetState Lnet/minecraft/world/gen/trunk/TrunkPlacer;getAndSetState(Lnet/minecraft/world/TestableWorld;Ljava/util/function/BiConsumer;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;Ljava/util/function/Function;)Z
      • trySetState

        protected static void trySetState​(TestableWorld testableWorld,
                                          BiConsumer<BlockPos,​BlockState> biConsumer,
                                          Random random,
                                          BlockPos.Mutable mutable,
                                          TreeFeatureConfig treeFeatureConfig)
        Mappings:
        Namespace Name Mixin selector
        official a Lcxo;a(Lbvx;Ljava/util/function/BiConsumer;Ljava/util/Random;Lgb$a;Lcvi;)V
        intermediary method_27401 Lnet/minecraft/class_5141;method_27401(Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Ljava/util/Random;Lnet/minecraft/class_2338$class_2339;Lnet/minecraft/class_4643;)V
        named trySetState Lnet/minecraft/world/gen/trunk/TrunkPlacer;trySetState(Lnet/minecraft/world/TestableWorld;Ljava/util/function/BiConsumer;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos$Mutable;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;)V