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 dekintermediary net/minecraft/class_7386named net/minecraft/world/gen/root/MangroveRootPlacer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryEntryList<Block>static final com.mojang.serialization.Codec<MangroveRootPlacer>static final intstatic final intprivate final intprivate final intprivate final RegistryEntryList<Block>private final BlockStateProviderprivate final floatprivate final IntProviderFields inherited from class net.minecraft.world.gen.root.RootPlacer
rootProvider, TYPE_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionMangroveRootPlacer(BlockStateProvider rootProvider, RegistryEntryList<Block> canGrowThrough, RegistryEntryList<Block> muddyRootsIn, BlockStateProvider muddyRootsProvider, int maxRootWidth, int maxRootLength, IntProvider yOffset, float randomSkewChance) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancanGrow(TestableWorld world, AbstractRandom random, BlockPos pos, Direction direction, BlockPos origin, List<BlockPos> offshootPositions, int rootLength) protected booleancanGrowThrough(TestableWorld world, BlockPos pos) generate(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, AbstractRandom random, BlockPos pos, TreeFeatureConfig config) getOffshootPositions(BlockPos pos, Direction direction, AbstractRandom random, BlockPos origin) protected RootPlacerType<?>getType()protected voidplaceRoots(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, AbstractRandom random, BlockPos pos, TreeFeatureConfig config) Methods inherited from class net.minecraft.world.gen.root.RootPlacer
applyWaterlogging, method_43182
-
Field Details
-
field_38769
public static final int field_38769- See Also:
- Mappings:
Namespace Name Mixin selector official aLdek;a:Iintermediary field_38769Lnet/minecraft/class_7386;field_38769:Inamed field_38769Lnet/minecraft/world/gen/root/MangroveRootPlacer;field_38769:I
-
field_38770
public static final int field_38770- See Also:
- Mappings:
Namespace Name Mixin selector official bLdek;b:Iintermediary field_38770Lnet/minecraft/class_7386;field_38770:Inamed field_38770Lnet/minecraft/world/gen/root/MangroveRootPlacer;field_38770:I
-
CODEC
- Mappings:
Namespace Name Mixin selector official cLdek;c:Lcom/mojang/serialization/Codec;intermediary field_38771Lnet/minecraft/class_7386;field_38771:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/root/MangroveRootPlacer;CODEC:Lcom/mojang/serialization/Codec;
-
canGrowThrough
- Mappings:
Namespace Name Mixin selector official fLdek;f:Lgx;intermediary field_38772Lnet/minecraft/class_7386;field_38772:Lnet/minecraft/class_6885;named canGrowThroughLnet/minecraft/world/gen/root/MangroveRootPlacer;canGrowThrough:Lnet/minecraft/util/registry/RegistryEntryList;
-
muddyRootsIn
- Mappings:
Namespace Name Mixin selector official gLdek;g:Lgx;intermediary field_38773Lnet/minecraft/class_7386;field_38773:Lnet/minecraft/class_6885;named muddyRootsInLnet/minecraft/world/gen/root/MangroveRootPlacer;muddyRootsIn:Lnet/minecraft/util/registry/RegistryEntryList;
-
muddyRootsProvider
- Mappings:
Namespace Name Mixin selector official hLdek;h:Lden;intermediary field_38774Lnet/minecraft/class_7386;field_38774:Lnet/minecraft/class_4651;named muddyRootsProviderLnet/minecraft/world/gen/root/MangroveRootPlacer;muddyRootsProvider:Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;
-
maxRootWidth
private final int maxRootWidth- Mappings:
Namespace Name Mixin selector official iLdek;i:Iintermediary field_38775Lnet/minecraft/class_7386;field_38775:Inamed maxRootWidthLnet/minecraft/world/gen/root/MangroveRootPlacer;maxRootWidth:I
-
maxRootLength
private final int maxRootLength- Mappings:
Namespace Name Mixin selector official jLdek;j:Iintermediary field_38776Lnet/minecraft/class_7386;field_38776:Inamed maxRootLengthLnet/minecraft/world/gen/root/MangroveRootPlacer;maxRootLength:I
-
yOffset
- Mappings:
Namespace Name Mixin selector official kLdek;k:Lawt;intermediary field_38777Lnet/minecraft/class_7386;field_38777:Lnet/minecraft/class_6017;named yOffsetLnet/minecraft/world/gen/root/MangroveRootPlacer;yOffset:Lnet/minecraft/util/math/intprovider/IntProvider;
-
randomSkewChance
private final float randomSkewChance- Mappings:
Namespace Name Mixin selector official lLdek;l:Fintermediary field_38778Lnet/minecraft/class_7386;field_38778:Fnamed randomSkewChanceLnet/minecraft/world/gen/root/MangroveRootPlacer;randomSkewChance:F
-
-
Constructor Details
-
MangroveRootPlacer
public MangroveRootPlacer(BlockStateProvider rootProvider, RegistryEntryList<Block> canGrowThrough, RegistryEntryList<Block> muddyRootsIn, BlockStateProvider muddyRootsProvider, int maxRootWidth, int maxRootLength, IntProvider yOffset, float randomSkewChance) - Mappings:
Namespace Name Mixin selector official <init>Ldek;<init>(Lden;Lgx;Lgx;Lden;IILawt;F)Vintermediary <init>Lnet/minecraft/class_7386;<init>(Lnet/minecraft/class_4651;Lnet/minecraft/class_6885;Lnet/minecraft/class_6885;Lnet/minecraft/class_4651;IILnet/minecraft/class_6017;F)Vnamed <init>Lnet/minecraft/world/gen/root/MangroveRootPlacer;<init>(Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;Lnet/minecraft/util/registry/RegistryEntryList;Lnet/minecraft/util/registry/RegistryEntryList;Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;IILnet/minecraft/util/math/intprovider/IntProvider;F)V
-
-
Method Details
-
generate
public Optional<BlockPos> generate(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, AbstractRandom random, BlockPos pos, TreeFeatureConfig config) - Specified by:
generatein classRootPlacer- Mappings:
Namespace Name Mixin selector official aLdel;a(Lcdy;Ljava/util/function/BiConsumer;Laki;Lgm;Lddm;)Ljava/util/Optional;intermediary 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_4643;)Ljava/util/Optional;named generateLnet/minecraft/world/gen/root/RootPlacer;generate(Lnet/minecraft/world/TestableWorld;Ljava/util/function/BiConsumer;Lnet/minecraft/util/math/random/AbstractRandom;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;)Ljava/util/Optional;
-
canGrow
private boolean canGrow(TestableWorld world, AbstractRandom random, BlockPos pos, Direction direction, BlockPos origin, List<BlockPos> offshootPositions, int rootLength) - Mappings:
Namespace Name Mixin selector official aLdek;a(Lcdy;Laki;Lgm;Lgr;Lgm;Ljava/util/List;I)Zintermediary method_43166Lnet/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)Znamed canGrowLnet/minecraft/world/gen/root/MangroveRootPlacer;canGrow(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/random/AbstractRandom;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/BlockPos;Ljava/util/List;I)Z
-
getOffshootPositions
protected List<BlockPos> getOffshootPositions(BlockPos pos, Direction direction, AbstractRandom random, BlockPos origin) - Mappings:
Namespace Name Mixin selector official aLdek;a(Lgm;Lgr;Laki;Lgm;)Ljava/util/List;intermediary method_43171Lnet/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 getOffshootPositionsLnet/minecraft/world/gen/root/MangroveRootPlacer;getOffshootPositions(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/random/AbstractRandom;Lnet/minecraft/util/math/BlockPos;)Ljava/util/List;
-
canGrowThrough
- Mappings:
Namespace Name Mixin selector official aLdek;a(Lcdy;Lgm;)Zintermediary method_43167Lnet/minecraft/class_7386;method_43167(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;)Znamed canGrowThroughLnet/minecraft/world/gen/root/MangroveRootPlacer;canGrowThrough(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;)Z
-
placeRoots
protected void placeRoots(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, AbstractRandom random, BlockPos pos, TreeFeatureConfig config) - Overrides:
placeRootsin classRootPlacer- Mappings:
Namespace Name Mixin selector official bLdel;b(Lcdy;Ljava/util/function/BiConsumer;Laki;Lgm;Lddm;)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/AbstractRandom;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;)V
-
getType
- Specified by:
getTypein classRootPlacer- Mappings:
Namespace Name Mixin selector official aLdel;a()Ldem;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;
-