Package net.minecraft.world.gen.feature
Class ConfiguredFeature<FC extends FeatureConfig,F extends Feature<FC>>
java.lang.Object
net.minecraft.world.gen.feature.ConfiguredFeature<FC,F>
- All Implemented Interfaces:
Decoratable<ConfiguredFeature<?,?>>
public class ConfiguredFeature<FC extends FeatureConfig,F extends Feature<FC>> extends Object implements Decoratable<ConfiguredFeature<?,?>>
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description ConfiguredFeature(F feature, FC config)
-
Method Summary
Modifier and Type Method 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)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.gen.decorator.Decoratable
applyChance, rangeOf, repeat, repeat, repeatRandomly, spreadHorizontally
-
Field Details
-
CODEC
-
REGISTRY_CODEC
public static final com.mojang.serialization.Codec<Supplier<ConfiguredFeature<?,?>>> REGISTRY_CODEC -
field_26756
public static final com.mojang.serialization.Codec<List<Supplier<ConfiguredFeature<?,?>>>> field_26756 -
LOGGER
-
feature
-
config
-
-
Constructor Details
-
ConfiguredFeature
-
-
Method Details
-
getFeature
-
getConfig
-
decorate
- Specified by:
decorate
in interfaceDecoratable<FC extends FeatureConfig>
-
withChance
-
generate
public boolean generate(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos pos) -
method_30648
-