net.minecraft.world.gen.feature

public class VegetationPatchFeature

extends Feature<VegetationPatchFeatureConfig>

net.minecraft.world.level.levelgen.feature.VegetationPatchFeature
net.minecraft.class_5922
net.minecraft.world.gen.feature.VegetationPatchFeature

Constructor summary

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

Method summary

Modifier and TypeMethod
public boolean
place(FeaturePlaceContext<VegetationPatchConfiguration> context)
method_13151(class_5821<class_5927> arg0)
generate(FeatureContext<VegetationPatchFeatureConfig> arg0)
protected Set<BlockPos>
placeGroundPatch(WorldGenLevel level, VegetationPatchConfiguration config, RandomSource random, BlockPos origin, Predicate<BlockState> replaceable, int xRadius, int zRadius)
method_34316(class_5281 arg0, class_5927 arg1, class_5819 arg2, class_2338 arg3, Predicate<class_2680> arg4, int arg5, int arg6)
placeGroundAndGetPositions(StructureWorldAccess world, VegetationPatchFeatureConfig config, Random random, BlockPos pos, Predicate<BlockState> replaceable, int radiusX, int radiusZ)
protected void
distributeVegetation(FeaturePlaceContext<VegetationPatchConfiguration> context, WorldGenLevel level, VegetationPatchConfiguration config, RandomSource random, Set<BlockPos> surface, int xRadius, int zRadius)
method_34318(class_5821<class_5927> arg0, class_5281 arg1, class_5927 arg2, class_5819 arg3, Set<class_2338> arg4, int arg5, int arg6)
generateVegetation(FeatureContext<VegetationPatchFeatureConfig> context, StructureWorldAccess world, VegetationPatchFeatureConfig config, Random random, Set<BlockPos> positions, int radiusX, int radiusZ)
protected boolean
placeVegetation(WorldGenLevel level, VegetationPatchConfiguration config, ChunkGenerator generator, RandomSource random, BlockPos vegetationPos)
method_34315(class_5281 arg0, class_5927 arg1, class_2794 arg2, class_5819 arg3, class_2338 arg4)
generateVegetationFeature(StructureWorldAccess world, VegetationPatchFeatureConfig config, ChunkGenerator generator, Random random, BlockPos pos)
protected boolean
placeGround(WorldGenLevel level, VegetationPatchConfiguration config, Predicate<BlockState> replaceable, RandomSource random, BlockPos$MutableBlockPos belowPos, int depth)
method_34317(class_5281 arg0, class_5927 arg1, Predicate<class_2680> arg2, class_5819 arg3, class_2338$class_2339 arg4, int arg5)
placeGround(StructureWorldAccess world, VegetationPatchFeatureConfig config, Predicate<BlockState> replaceable, Random random, BlockPos$Mutable pos, int depth)
private static boolean
lambda$placeGroundPatch$0(BlockState arg0)
method_34321(class_2680 arg0)
method_34321(BlockState state)
private static boolean
lambda$place$0(VegetationPatchConfiguration arg0, BlockState arg1)
method_40164(class_5927 arg0, class_2680 arg1)
method_40164(VegetationPatchFeatureConfig arg0, BlockState state)