Package net.minecraft.world.gen.root
Class RootPlacer
java.lang.Object
net.minecraft.world.gen.root.RootPlacer
- Direct Known Subclasses:
MangroveRootPlacer
- Mappings:
Namespace Name named net/minecraft/world/gen/root/RootPlacer
intermediary net/minecraft/class_7387
official efn
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Optional
<AboveRootPlacement> protected final BlockStateProvider
protected final IntProvider
static final com.mojang.serialization.Codec
<RootPlacer> -
Constructor Summary
ConstructorDescriptionRootPlacer
(IntProvider trunkOffsetY, BlockStateProvider rootProvider, Optional<AboveRootPlacement> aboveRootPlacement) -
Method Summary
Modifier and TypeMethodDescriptionprotected BlockState
applyWaterlogging
(TestableWorld world, BlockPos pos, BlockState state) protected boolean
canGrowThrough
(TestableWorld world, BlockPos pos) abstract boolean
generate
(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 void
placeRoots
(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 named TYPE_CODEC
Lnet/minecraft/world/gen/root/RootPlacer;TYPE_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_38779
Lnet/minecraft/class_7387;field_38779:Lcom/mojang/serialization/Codec;
official d
Lefn;d:Lcom/mojang/serialization/Codec;
-
trunkOffsetY
- Mappings:
Namespace Name Mixin selector named trunkOffsetY
Lnet/minecraft/world/gen/root/RootPlacer;trunkOffsetY:Lnet/minecraft/util/math/intprovider/IntProvider;
intermediary field_38868
Lnet/minecraft/class_7387;field_38868:Lnet/minecraft/class_6017;
official e
Lefn;e:Lbpm;
-
rootProvider
- Mappings:
Namespace Name Mixin selector named rootProvider
Lnet/minecraft/world/gen/root/RootPlacer;rootProvider:Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;
intermediary field_38780
Lnet/minecraft/class_7387;field_38780:Lnet/minecraft/class_4651;
official f
Lefn;f:Lefq;
-
aboveRootPlacement
- Mappings:
Namespace Name Mixin selector named aboveRootPlacement
Lnet/minecraft/world/gen/root/RootPlacer;aboveRootPlacement:Ljava/util/Optional;
intermediary field_38869
Lnet/minecraft/class_7387;field_38869:Ljava/util/Optional;
official g
Lefn;g:Ljava/util/Optional;
-
-
Constructor Details
-
RootPlacer
public RootPlacer(IntProvider trunkOffsetY, BlockStateProvider rootProvider, Optional<AboveRootPlacement> aboveRootPlacement) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/gen/root/RootPlacer;<init>(Lnet/minecraft/util/math/intprovider/IntProvider;Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;Ljava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_7387;<init>(Lnet/minecraft/class_6017;Lnet/minecraft/class_4651;Ljava/util/Optional;)V
official <init>
Lefn;<init>(Lbpm;Lefq;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 named method_43182
Lnet/minecraft/world/gen/root/RootPlacer;method_43182(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P3;
intermediary method_43182
Lnet/minecraft/class_7387;method_43182(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P3;
official a
Lefn;a(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P3;
-
getType
- Mappings:
Namespace Name Mixin selector named getType
Lnet/minecraft/world/gen/root/RootPlacer;getType()Lnet/minecraft/world/gen/root/RootPlacerType;
intermediary method_43165
Lnet/minecraft/class_7387;method_43165()Lnet/minecraft/class_7388;
official a
Lefn;a()Lefo;
-
generate
public abstract boolean generate(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, BlockPos trunkPos, TreeFeatureConfig config) - Mappings:
Namespace Name Mixin selector named generate
Lnet/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
intermediary method_43168
Lnet/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;)Z
official a
Lefn;a(Ldcm;Ljava/util/function/BiConsumer;Layo;Lja;Lja;Leel;)Z
-
canGrowThrough
- Mappings:
Namespace Name Mixin selector named canGrowThrough
Lnet/minecraft/world/gen/root/RootPlacer;canGrowThrough(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_43167
Lnet/minecraft/class_7387;method_43167(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;)Z
official a
Lefn;a(Ldcm;Lja;)Z
-
placeRoots
protected void placeRoots(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config) - Mappings:
Namespace Name Mixin selector named placeRoots
Lnet/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
intermediary method_43172
Lnet/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;)V
official a
Lefn;a(Ldcm;Ljava/util/function/BiConsumer;Layo;Lja;Leel;)V
-
applyWaterlogging
- Mappings:
Namespace Name Mixin selector named applyWaterlogging
Lnet/minecraft/world/gen/root/RootPlacer;applyWaterlogging(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;
intermediary method_43181
Lnet/minecraft/class_7387;method_43181(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_2680;
official a
Lefn;a(Ldcm;Lja;Ldsl;)Ldsl;
-
trunkOffset
- Mappings:
Namespace Name Mixin selector named trunkOffset
Lnet/minecraft/world/gen/root/RootPlacer;trunkOffset(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/util/math/BlockPos;
intermediary method_43309
Lnet/minecraft/class_7387;method_43309(Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Lnet/minecraft/class_2338;
official a
Lefn;a(Lja;Layo;)Lja;
-