net.minecraft.world.gen.feature

public class RootSystemFeature

extends Feature<RootSystemFeatureConfig>

net.minecraft.world.level.levelgen.feature.RootSystemFeature
net.minecraft.class_5921
net.minecraft.world.gen.feature.RootSystemFeature

Constructor summary

ModifierConstructor
public (com.mojang.serialization.Codec<RootSystemFeatureConfig> codec)

Method summary

Modifier and TypeMethod
public boolean
place(FeaturePlaceContext<RootSystemConfiguration> context)
method_13151(class_5821<class_5926> arg0)
generate(FeatureContext<RootSystemFeatureConfig> arg0)
private static boolean
spaceForTree(WorldGenLevel level, RootSystemConfiguration config, BlockPos pos)
method_34310(class_5281 arg0, class_5926 arg1, class_2338 arg2)
hasSpaceForTree(StructureWorldAccess world, RootSystemFeatureConfig config, BlockPos pos)
private static boolean
isAllowedTreeSpace(BlockState state, int blocksAboveOrigin, int allowedVerticalWaterHeight)
method_36419(class_2680 arg0, int arg1, int arg2)
isAirOrWater(BlockState state, int height, int allowedVerticalWaterForTree)
private static boolean
placeDirtAndTree(WorldGenLevel level, ChunkGenerator generator, RootSystemConfiguration config, RandomSource random, BlockPos$MutableBlockPos workingPos, BlockPos pos)
method_34308(class_5281 arg0, class_2794 arg1, class_5926 arg2, class_5819 arg3, class_2338$class_2339 arg4, class_2338 arg5)
generateTreeAndRoots(StructureWorldAccess world, ChunkGenerator generator, RootSystemFeatureConfig config, Random random, BlockPos$Mutable mutablePos, BlockPos pos)
private static void
placeDirt(BlockPos origin, int targetHeight, WorldGenLevel level, RootSystemConfiguration config, RandomSource random)
method_39918(class_2338 arg0, int arg1, class_5281 arg2, class_5926 arg3, class_5819 arg4)
generateRootsColumn(BlockPos pos, int maxY, StructureWorldAccess world, RootSystemFeatureConfig config, Random random)
private static void
placeRootedDirt(WorldGenLevel level, RootSystemConfiguration config, RandomSource random, int originX, int originZ, BlockPos$MutableBlockPos workingPos)
method_34311(class_5281 arg0, class_5926 arg1, class_5819 arg2, int arg3, int arg4, class_2338$class_2339 arg5)
generateRoots(StructureWorldAccess world, RootSystemFeatureConfig config, Random random, int x, int z, BlockPos$Mutable mutablePos)
private static void
placeRoots(WorldGenLevel level, RootSystemConfiguration config, RandomSource random, BlockPos pos, BlockPos$MutableBlockPos workingPos)
method_34312(class_5281 arg0, class_5926 arg1, class_5819 arg2, class_2338 arg3, class_2338$class_2339 arg4)
generateHangingRoots(StructureWorldAccess world, RootSystemFeatureConfig config, Random random, BlockPos pos, BlockPos$Mutable mutablePos)
private static boolean
lambda$placeRootedDirt$0(RootSystemConfiguration arg0, BlockState arg1)
method_34307(class_5926 arg0, class_2680 arg1)
method_34307(RootSystemFeatureConfig arg0, BlockState state)