net.minecraft.world.gen.feature

public class VegetationPatchFeature

implements Feature

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

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<VegetationPatchFeature>
CODEC
CODEC
field_1_7876
CODEC
protected final RegistryEntryList<Block>
replaceable
replaceable
field_1_7881
replaceable
protected final RegistryEntry<BlockStateProvider>
groundState
groundState
field_1_7880
groundState
protected final RegistryEntry<PlacedFeature>
vegetationFeature
vegetationFeature
field_1_7884
vegetationFeature
protected final VerticalSurfaceType
surface
surface
field_1_7882
surface
protected final IntProvider
depth
depth
field_1_7877
depth
protected final float
extraBottomBlockChance
extraBottomBlockChance
field_1_7878
extraBottomBlockChance
protected final int
verticalRange
verticalRange
field_1_7885
verticalRange
protected final float
vegetationChance
vegetationChance
field_1_7883
vegetationChance
protected final IntProvider
xzRadius
xzRadius
field_1_7886
xzRadius
protected final float
extraEdgeColumnChance
extraEdgeColumnChance
field_1_7879
extraEdgeColumnChance

Constructor summary

ModifierConstructor
public (RegistryEntryList<Block> replaceable, RegistryEntry<BlockStateProvider> groundState, RegistryEntry<PlacedFeature> vegetationFeature, VerticalSurfaceType surface, IntProvider depth, float extraBottomBlockChance, int verticalRange, float vegetationChance, IntProvider xzRadius, float extraEdgeColumnChance)

Method summary

Modifier and TypeMethod
protected static <T extends VegetationPatchFeature> com.mojang.serialization.MapCodec<T>
makeCodec(com.mojang.datafixers.util.Function10<HolderSet<Block>, Holder<BlockStateProvider>, Holder<PlacedFeature>, CaveSurface, IntProvider, Float, Integer, Float, IntProvider, Float, T> constructor)
makeCodec(com.mojang.datafixers.util.Function10<HolderSet<Block>, Holder<BlockStateProvider>, Holder<PlacedFeature>, CaveSurface, IntProvider, Float, Integer, Float, IntProvider, Float, T> constructor)
method_1_7186(com.mojang.datafixers.util.Function10<class_6885<class_2248>, class_6880<class_4651>, class_6880<class_6796>, class_5932, class_6017, Float, Integer, Float, class_6017, Float, T> arg0)
createCodec(com.mojang.datafixers.util.Function10<RegistryEntryList<Block>, RegistryEntry<BlockStateProvider>, RegistryEntry<PlacedFeature>, VerticalSurfaceType, IntProvider, Float, Integer, Float, IntProvider, Float, T> constructor)
public com.mojang.serialization.MapCodec<? extends VegetationPatchFeature>
codec()
codec()
method_1_6879()
getCodec()
public boolean
place(WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin)
place(WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin)
method_13151(class_5281 arg0, class_2794 arg1, class_5819 arg2, class_2338 arg3)
generate(StructureWorldAccess arg0, ChunkGenerator arg1, Random arg2, BlockPos arg3)
protected Set<BlockPos>
placeGroundPatch(WorldGenLevel level, RandomSource random, BlockPos origin, Predicate<BlockState> replaceable, int xRadius, int zRadius)
placeGroundPatch(WorldGenLevel level, RandomSource random, BlockPos origin, Predicate<BlockState> replaceable, int xRadius, int zRadius)
method_34316(class_5281 arg0, class_5819 arg1, class_2338 arg2, Predicate<class_2680> arg3, int arg4, int arg5)
placeGroundAndGetPositions(StructureWorldAccess world, Random random, BlockPos pos, Predicate<BlockState> replaceable, int radiusX, int radiusZ)
private void
distributeVegetation(WorldGenLevel level, ChunkGenerator generator, RandomSource random, Set<BlockPos> surface)
distributeVegetation(WorldGenLevel level, ChunkGenerator generator, RandomSource random, Set<BlockPos> surface)
method_34318(class_5281 arg0, class_2794 arg1, class_5819 arg2, Set<class_2338> arg3)
generateVegetation(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, Set<BlockPos> positions)
protected boolean
placeVegetation(WorldGenLevel level, ChunkGenerator generator, RandomSource random, BlockPos vegetationPos)
placeVegetation(WorldGenLevel level, ChunkGenerator generator, RandomSource random, BlockPos vegetationPos)
method_34315(class_5281 arg0, class_2794 arg1, class_5819 arg2, class_2338 arg3)
generateVegetationFeature(StructureWorldAccess world, ChunkGenerator generator, Random random, BlockPos pos)
private boolean
placeGround(WorldGenLevel level, Predicate<BlockState> replaceable, RandomSource random, BlockPos$MutableBlockPos belowPos, int depth)
placeGround(WorldGenLevel level, Predicate<BlockState> replaceable, RandomSource random, BlockPos$MutableBlockPos belowPos, int depth)
method_34317(class_5281 arg0, Predicate<class_2680> arg1, class_5819 arg2, class_2338$class_2339 arg3, int arg4)
placeGround(StructureWorldAccess world, Predicate<BlockState> replaceable, Random random, BlockPos$Mutable pos, int depth)