net.minecraft.world.gen.feature

public class VegetationPatchFeature

implements Feature

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
field_1_7876
CODEC
protected final RegistryEntryList<Block>
replaceable
field_1_7881
field_1_7881
protected final BlockStateProvider
groundState
field_1_7880
field_1_7880
protected final RegistryEntry<PlacedFeature>
vegetationFeature
field_1_7884
field_1_7884
protected final VerticalSurfaceType
surface
field_1_7882
field_1_7882
protected final IntProvider
depth
field_1_7877
field_1_7877
protected final float
extraBottomBlockChance
field_1_7878
field_1_7878
protected final int
verticalRange
field_1_7885
field_1_7885
protected final float
vegetationChance
field_1_7883
field_1_7883
protected final IntProvider
xzRadius
field_1_7886
field_1_7886
protected final float
extraEdgeColumnChance
field_1_7879
field_1_7879

Constructor summary

ModifierConstructor
public (RegistryEntryList<Block> replaceable, 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>, 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_4651, class_6880<class_6796>, class_5932, class_6017, Float, Integer, Float, class_6017, Float, T> arg0)
method_1_7186(com.mojang.datafixers.util.Function10<RegistryEntryList<Block>, BlockStateProvider, RegistryEntry<PlacedFeature>, VerticalSurfaceType, IntProvider, Float, Integer, Float, IntProvider, Float, T> arg0)
public com.mojang.serialization.MapCodec<? extends VegetationPatchFeature>
codec()
method_1_6879()
getCodec()
public boolean
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)
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)
method_34318(class_5281 arg0, class_2794 arg1, class_5819 arg2, Set<class_2338> arg3)
generateVegetation(StructureWorldAccess world, ChunkGenerator arg1, Random random, Set<BlockPos> positions)
protected boolean
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)
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)
private static boolean
lambda$placeGroundPatch$0(BlockState arg0)
method_34321(class_2680 arg0)
method_34321(BlockState state)
private boolean
lambda$place$0(BlockState arg0)
method_40164(class_2680 arg0)
method_40164(BlockState state)
private static com.mojang.datafixers.kinds.App
lambda$makeCodec$0(com.mojang.datafixers.util.Function10 arg0, com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg1)
method_1_7175(com.mojang.datafixers.util.Function10 arg0, com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg1)
method_1_7175(com.mojang.datafixers.util.Function10 arg0, com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg1)
private static Float
lambda$makeCodec$10(VegetationPatchFeature arg0)
method_1_7177(class_5922 arg0)
method_1_7177(VegetationPatchFeature arg0)
private static IntProvider
lambda$makeCodec$9(VegetationPatchFeature arg0)
method_1_7185(class_5922 arg0)
method_1_7185(VegetationPatchFeature arg0)
private static Float
lambda$makeCodec$8(VegetationPatchFeature arg0)
method_1_7184(class_5922 arg0)
method_1_7184(VegetationPatchFeature arg0)
private static Integer
lambda$makeCodec$7(VegetationPatchFeature arg0)
method_1_7183(class_5922 arg0)
method_1_7183(VegetationPatchFeature arg0)
private static Float
lambda$makeCodec$6(VegetationPatchFeature arg0)
method_1_7182(class_5922 arg0)
method_1_7182(VegetationPatchFeature arg0)
private static IntProvider
lambda$makeCodec$5(VegetationPatchFeature arg0)
method_1_7181(class_5922 arg0)
method_1_7181(VegetationPatchFeature arg0)
private static VerticalSurfaceType
lambda$makeCodec$4(VegetationPatchFeature arg0)
method_1_7180(class_5922 arg0)
method_1_7180(VegetationPatchFeature arg0)
private static RegistryEntry
lambda$makeCodec$3(VegetationPatchFeature arg0)
method_1_7179(class_5922 arg0)
method_1_7179(VegetationPatchFeature arg0)
private static BlockStateProvider
lambda$makeCodec$2(VegetationPatchFeature arg0)
method_1_7178(class_5922 arg0)
method_1_7178(VegetationPatchFeature arg0)
private static RegistryEntryList
lambda$makeCodec$1(VegetationPatchFeature arg0)
method_1_7176(class_5922 arg0)
method_1_7176(VegetationPatchFeature arg0)