net.minecraft.world.gen.feature

public record RandomFeatureEntry

net.minecraft.world.level.levelgen.feature.WeightedPlacedFeature
net.minecraft.world.level.levelgen.feature.WeightedPlacedFeature
net.minecraft.class_3226
net.minecraft.world.gen.feature.RandomFeatureEntry

Field summary

Modifier and TypeField
private final RegistryEntry<PlacedFeature>
feature
feature
comp_1_798
feature
private final float
chance
chance
comp_1_797
chance
public static final com.mojang.serialization.Codec<RandomFeatureEntry>
CODEC
CODEC
field_24864
CODEC

Constructor summary

ModifierConstructor
public (RegistryEntry<PlacedFeature> feature, float chance)

Method summary

Modifier and TypeMethod
public boolean
place(WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin)
place(WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin)
method_14271(class_5281 arg0, class_2794 arg1, class_5819 arg2, class_2338 arg3)
generate(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos pos)
public RegistryEntry<PlacedFeature>
feature()
feature()
comp_1_798()
feature()
public float
chance()
chance()
comp_1_797()
chance()