public class ConfiguredFeature<FC extends FeatureConfig,F extends Feature<FC>> extends Object implements Decoratable<ConfiguredFeature<?,?>>
Modifier and Type | Field and Description |
---|---|
static com.mojang.serialization.Codec<ConfiguredFeature<?,?>> |
CODEC |
FC |
config |
F |
feature |
static com.mojang.serialization.Codec<List<Supplier<ConfiguredFeature<?,?>>>> |
field_26756 |
static Logger |
LOGGER |
static com.mojang.serialization.Codec<Supplier<ConfiguredFeature<?,?>>> |
REGISTRY_CODEC |
Constructor and Description |
---|
ConfiguredFeature(F feature,
FC config) |
Modifier and Type | Method and Description |
---|---|
ConfiguredFeature<?,?> |
decorate(ConfiguredDecorator<?> configuredDecorator) |
boolean |
generate(StructureWorldAccess world,
ChunkGenerator chunkGenerator,
Random random,
BlockPos pos) |
FC |
getConfig() |
F |
getFeature() |
Stream<ConfiguredFeature<?,?>> |
method_30648() |
RandomFeatureEntry |
withChance(float chance) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyChance, method_30377, repeat, repeat, repeatRandomly, spreadHorizontally
public static final com.mojang.serialization.Codec<ConfiguredFeature<?,?>> CODEC
public static final com.mojang.serialization.Codec<Supplier<ConfiguredFeature<?,?>>> REGISTRY_CODEC
public static final com.mojang.serialization.Codec<List<Supplier<ConfiguredFeature<?,?>>>> field_26756
public static final Logger LOGGER
public final FC extends FeatureConfig config
public F getFeature()
public FC getConfig()
public ConfiguredFeature<?,?> decorate(ConfiguredDecorator<?> configuredDecorator)
decorate
in interface Decoratable<ConfiguredFeature<?,?>>
public RandomFeatureEntry withChance(float chance)
public boolean generate(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos pos)
public Stream<ConfiguredFeature<?,?>> method_30648()