Package net.minecraft.world.gen.root
Class RootPlacer
java.lang.Object
net.minecraft.world.gen.root.RootPlacer
- Direct Known Subclasses:
MangroveRootPlacer
- Mappings:
Namespace Name official donintermediary net/minecraft/class_7387named net/minecraft/world/gen/root/RootPlacer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Optional<AboveRootPlacement>protected final BlockStateProviderprotected final IntProviderstatic final com.mojang.serialization.Codec<RootPlacer> -
Constructor Summary
ConstructorsConstructorDescriptionRootPlacer(IntProvider trunkOffsetY, BlockStateProvider rootProvider, Optional<AboveRootPlacement> aboveRootPlacement) -
Method Summary
Modifier and TypeMethodDescriptionprotected BlockStateapplyWaterlogging(TestableWorld world, BlockPos pos, BlockState state) protected booleancanGrowThrough(TestableWorld world, BlockPos pos) abstract booleangenerate(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, BlockPos trunkPos, TreeFeatureConfig config) protected abstract RootPlacerType<?>getType()protected static <P extends RootPlacer>
com.mojang.datafixers.Products.P3<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,IntProvider, BlockStateProvider, Optional<AboveRootPlacement>> method_43182(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> instance) protected voidplaceRoots(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config) trunkOffset(BlockPos pos, Random random)
-
Field Details
-
TYPE_CODEC
- Mappings:
Namespace Name Mixin selector official dLdon;d:Lcom/mojang/serialization/Codec;intermediary field_38779Lnet/minecraft/class_7387;field_38779:Lcom/mojang/serialization/Codec;named TYPE_CODECLnet/minecraft/world/gen/root/RootPlacer;TYPE_CODEC:Lcom/mojang/serialization/Codec;
-
trunkOffsetY
- Mappings:
Namespace Name Mixin selector official eLdon;e:Lbdb;intermediary field_38868Lnet/minecraft/class_7387;field_38868:Lnet/minecraft/class_6017;named trunkOffsetYLnet/minecraft/world/gen/root/RootPlacer;trunkOffsetY:Lnet/minecraft/util/math/intprovider/IntProvider;
-
rootProvider
- Mappings:
Namespace Name Mixin selector official fLdon;f:Ldoq;intermediary field_38780Lnet/minecraft/class_7387;field_38780:Lnet/minecraft/class_4651;named rootProviderLnet/minecraft/world/gen/root/RootPlacer;rootProvider:Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;
-
aboveRootPlacement
- Mappings:
Namespace Name Mixin selector official gLdon;g:Ljava/util/Optional;intermediary field_38869Lnet/minecraft/class_7387;field_38869:Ljava/util/Optional;named aboveRootPlacementLnet/minecraft/world/gen/root/RootPlacer;aboveRootPlacement:Ljava/util/Optional;
-
-
Constructor Details
-
RootPlacer
public RootPlacer(IntProvider trunkOffsetY, BlockStateProvider rootProvider, Optional<AboveRootPlacement> aboveRootPlacement) - Mappings:
Namespace Name Mixin selector official <init>Ldon;<init>(Lbdb;Ldoq;Ljava/util/Optional;)Vintermediary <init>Lnet/minecraft/class_7387;<init>(Lnet/minecraft/class_6017;Lnet/minecraft/class_4651;Ljava/util/Optional;)Vnamed <init>Lnet/minecraft/world/gen/root/RootPlacer;<init>(Lnet/minecraft/util/math/intprovider/IntProvider;Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;Ljava/util/Optional;)V
-
-
Method Details
-
method_43182
protected static <P extends RootPlacer> com.mojang.datafixers.Products.P3<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,IntProvider, method_43182BlockStateProvider, Optional<AboveRootPlacement>> (com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> instance) - Mappings:
Namespace Name Mixin selector official aLdon;a(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P3;intermediary method_43182Lnet/minecraft/class_7387;method_43182(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P3;named method_43182Lnet/minecraft/world/gen/root/RootPlacer;method_43182(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P3;
-
getType
- Mappings:
Namespace Name Mixin selector official aLdon;a()Ldoo;intermediary method_43165Lnet/minecraft/class_7387;method_43165()Lnet/minecraft/class_7388;named getTypeLnet/minecraft/world/gen/root/RootPlacer;getType()Lnet/minecraft/world/gen/root/RootPlacerType;
-
generate
public abstract boolean generate(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, BlockPos trunkPos, TreeFeatureConfig config) - Mappings:
Namespace Name Mixin selector official aLdon;a(Lcmq;Ljava/util/function/BiConsumer;Lapf;Lgu;Lgu;Ldnl;)Zintermediary method_43168Lnet/minecraft/class_7387;method_43168(Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Lnet/minecraft/class_4643;)Znamed generateLnet/minecraft/world/gen/root/RootPlacer;generate(Lnet/minecraft/world/TestableWorld;Ljava/util/function/BiConsumer;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;)Z
-
canGrowThrough
- Mappings:
Namespace Name Mixin selector official aLdon;a(Lcmq;Lgu;)Zintermediary method_43167Lnet/minecraft/class_7387;method_43167(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;)Znamed canGrowThroughLnet/minecraft/world/gen/root/RootPlacer;canGrowThrough(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;)Z
-
placeRoots
protected void placeRoots(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config) - Mappings:
Namespace Name Mixin selector official aLdon;a(Lcmq;Ljava/util/function/BiConsumer;Lapf;Lgu;Ldnl;)Vintermediary method_43172Lnet/minecraft/class_7387;method_43172(Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;Lnet/minecraft/class_4643;)Vnamed placeRootsLnet/minecraft/world/gen/root/RootPlacer;placeRoots(Lnet/minecraft/world/TestableWorld;Ljava/util/function/BiConsumer;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;)V
-
applyWaterlogging
- Mappings:
Namespace Name Mixin selector official aLdon;a(Lcmq;Lgu;Ldby;)Ldby;intermediary method_43181Lnet/minecraft/class_7387;method_43181(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_2680;named applyWaterloggingLnet/minecraft/world/gen/root/RootPlacer;applyWaterlogging(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;
-
trunkOffset
- Mappings:
Namespace Name Mixin selector official aLdon;a(Lgu;Lapf;)Lgu;intermediary method_43309Lnet/minecraft/class_7387;method_43309(Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Lnet/minecraft/class_2338;named trunkOffsetLnet/minecraft/world/gen/root/RootPlacer;trunkOffset(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/util/math/BlockPos;
-