public class RandomFeatureEntry<FC extends FeatureConfig> extends Object
Modifier and Type | Field and Description |
---|---|
float |
chance |
ConfiguredFeature<FC,?> |
feature |
Constructor and Description |
---|
RandomFeatureEntry(ConfiguredFeature<FC,?> feature,
float chance) |
Modifier and Type | Method and Description |
---|---|
static <T> RandomFeatureEntry<?> |
deserialize(com.mojang.datafixers.Dynamic<T> dynamic) |
boolean |
generate(IWorld iWorld,
StructureAccessor structureAccessor,
ChunkGenerator<? extends ChunkGeneratorConfig> chunkGenerator,
Random random,
BlockPos blockPos) |
<T> com.mojang.datafixers.Dynamic<T> |
serialize(com.mojang.datafixers.types.DynamicOps<T> dynamic) |
public final ConfiguredFeature<FC extends FeatureConfig,?> feature
public final float chance
public RandomFeatureEntry(ConfiguredFeature<FC,?> feature, float chance)
public <T> com.mojang.datafixers.Dynamic<T> serialize(com.mojang.datafixers.types.DynamicOps<T> dynamic)
public boolean generate(IWorld iWorld, StructureAccessor structureAccessor, ChunkGenerator<? extends ChunkGeneratorConfig> chunkGenerator, Random random, BlockPos blockPos)
public static <T> RandomFeatureEntry<?> deserialize(com.mojang.datafixers.Dynamic<T> dynamic)