Package net.minecraft.world.gen.feature
Class RandomFeatureEntry
java.lang.Object
net.minecraft.world.gen.feature.RandomFeatureEntry
public class RandomFeatureEntry extends Object
-
Field Summary
Fields Modifier and Type Field Description float
chance
static com.mojang.serialization.Codec<RandomFeatureEntry>
CODEC
Supplier<ConfiguredFeature<?,?>>
feature
-
Constructor Summary
Constructors Modifier Constructor Description private
RandomFeatureEntry(Supplier<ConfiguredFeature<?,?>> feature, float chance)
RandomFeatureEntry(ConfiguredFeature<?,?> feature, float chance)
-
Method Summary
Modifier and Type Method Description boolean
generate(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos pos)
-
Field Details
-
CODEC
-
feature
-
chance
public final float chance
-
-
Constructor Details
-
RandomFeatureEntry
-
RandomFeatureEntry
-
-
Method Details
-
generate
public boolean generate(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos pos)
-