Package net.minecraft.world.gen.root
Class MangroveRootPlacer
java.lang.Object
net.minecraft.world.gen.root.RootPlacer
net.minecraft.world.gen.root.MangroveRootPlacer
- Mappings:
- Namespace - Name - official - dop- intermediary - net/minecraft/class_7386- named - net/minecraft/world/gen/root/MangroveRootPlacer
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MangroveRootPlacer>static final intstatic final intprivate final MangroveRootPlacementFields inherited from class net.minecraft.world.gen.root.RootPlaceraboveRootPlacement, rootProvider, trunkOffsetY, TYPE_CODEC
- 
Constructor SummaryConstructorsConstructorDescriptionMangroveRootPlacer(IntProvider trunkOffsetY, BlockStateProvider rootProvider, Optional<AboveRootPlacement> aboveRootPlacement, MangroveRootPlacement mangroveRootPlacement) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate booleancanGrow(TestableWorld world, Random random, BlockPos pos, Direction direction, BlockPos origin, List<BlockPos> offshootPositions, int rootLength) protected booleancanGrowThrough(TestableWorld world, BlockPos pos) booleangenerate(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, BlockPos trunkPos, TreeFeatureConfig config) getOffshootPositions(BlockPos pos, Direction direction, Random random, BlockPos origin) protected RootPlacerType<?>getType()protected voidplaceRoots(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config) Methods inherited from class net.minecraft.world.gen.root.RootPlacerapplyWaterlogging, method_43182, trunkOffset
- 
Field Details- 
field_38769public static final int field_38769- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldop;a:I- intermediary - field_38769- Lnet/minecraft/class_7386;field_38769:I- named - field_38769- Lnet/minecraft/world/gen/root/MangroveRootPlacer;field_38769:I
 
- 
field_38770public static final int field_38770- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldop;b:I- intermediary - field_38770- Lnet/minecraft/class_7386;field_38770:I- named - field_38770- Lnet/minecraft/world/gen/root/MangroveRootPlacer;field_38770:I
 
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - official - c- Ldop;c:Lcom/mojang/serialization/Codec;- intermediary - field_38771- Lnet/minecraft/class_7386;field_38771:Lcom/mojang/serialization/Codec;- named - CODEC- Lnet/minecraft/world/gen/root/MangroveRootPlacer;CODEC:Lcom/mojang/serialization/Codec;
 
- 
mangroveRootPlacement- Mappings:
- Namespace - Name - Mixin selector - official - h- Ldop;h:Ldoo;- intermediary - field_38867- Lnet/minecraft/class_7386;field_38867:Lnet/minecraft/class_7399;- named - mangroveRootPlacement- Lnet/minecraft/world/gen/root/MangroveRootPlacer;mangroveRootPlacement:Lnet/minecraft/world/gen/root/MangroveRootPlacement;
 
 
- 
- 
Constructor Details- 
MangroveRootPlacerpublic MangroveRootPlacer(IntProvider trunkOffsetY, BlockStateProvider rootProvider, Optional<AboveRootPlacement> aboveRootPlacement, MangroveRootPlacement mangroveRootPlacement) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Ldop;<init>(Lbdc;Ldot;Ljava/util/Optional;Ldoo;)V- intermediary - <init>- Lnet/minecraft/class_7386;<init>(Lnet/minecraft/class_6017;Lnet/minecraft/class_4651;Ljava/util/Optional;Lnet/minecraft/class_7399;)V- named - <init>- Lnet/minecraft/world/gen/root/MangroveRootPlacer;<init>(Lnet/minecraft/util/math/intprovider/IntProvider;Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;Ljava/util/Optional;Lnet/minecraft/world/gen/root/MangroveRootPlacement;)V
 
 
- 
- 
Method Details- 
generatepublic boolean generate(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, BlockPos trunkPos, TreeFeatureConfig config) - Specified by:
- generatein class- RootPlacer
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldoq;a(Lcms;Ljava/util/function/BiConsumer;Lapf;Lgu;Lgu;Ldno;)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- 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
 
- 
canGrowprivate boolean canGrow(TestableWorld world, Random random, BlockPos pos, Direction direction, BlockPos origin, List<BlockPos> offshootPositions, int rootLength) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldop;a(Lcms;Lapf;Lgu;Lha;Lgu;Ljava/util/List;I)Z- intermediary - method_43166- Lnet/minecraft/class_7386;method_43166(Lnet/minecraft/class_3746;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_2338;Ljava/util/List;I)Z- named - canGrow- Lnet/minecraft/world/gen/root/MangroveRootPlacer;canGrow(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/BlockPos;Ljava/util/List;I)Z
 
- 
getOffshootPositionsprotected List<BlockPos> getOffshootPositions(BlockPos pos, Direction direction, Random random, BlockPos origin) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldop;a(Lgu;Lha;Lapf;Lgu;)Ljava/util/List;- intermediary - method_43171- Lnet/minecraft/class_7386;method_43171(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;)Ljava/util/List;- named - getOffshootPositions- Lnet/minecraft/world/gen/root/MangroveRootPlacer;getOffshootPositions(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;)Ljava/util/List;
 
- 
canGrowThrough- Overrides:
- canGrowThroughin class- RootPlacer
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldoq;a(Lcms;Lgu;)Z- intermediary - method_43167- Lnet/minecraft/class_7387;method_43167(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;)Z- named - canGrowThrough- Lnet/minecraft/world/gen/root/RootPlacer;canGrowThrough(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;)Z
 
- 
placeRootsprotected void placeRoots(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config) - Overrides:
- placeRootsin class- RootPlacer
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldoq;a(Lcms;Ljava/util/function/BiConsumer;Lapf;Lgu;Ldno;)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- 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
 
- 
getType- Specified by:
- getTypein class- RootPlacer
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldoq;a()Ldor;- intermediary - method_43165- Lnet/minecraft/class_7387;method_43165()Lnet/minecraft/class_7388;- named - getType- Lnet/minecraft/world/gen/root/RootPlacer;getType()Lnet/minecraft/world/gen/root/RootPlacerType;
 
 
-