public class RandomFeatureEntry extends Object
Modifier and Type | Field and Description |
---|---|
float |
chance |
static com.mojang.serialization.Codec<RandomFeatureEntry> |
CODEC |
Supplier<ConfiguredFeature<?,?>> |
feature |
Modifier | Constructor and Description |
---|---|
|
RandomFeatureEntry(ConfiguredFeature<?,?> feature,
float chance) |
private |
RandomFeatureEntry(Supplier<ConfiguredFeature<?,?>> feature,
float chance) |
Modifier and Type | Method and Description |
---|---|
boolean |
generate(StructureWorldAccess world,
ChunkGenerator chunkGenerator,
Random random,
BlockPos pos) |
public static final com.mojang.serialization.Codec<RandomFeatureEntry> CODEC
public final Supplier<ConfiguredFeature<?,?>> feature
public final float chance
public RandomFeatureEntry(ConfiguredFeature<?,?> feature, float chance)
private RandomFeatureEntry(Supplier<ConfiguredFeature<?,?>> feature, float chance)
public boolean generate(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos pos)