Package net.minecraft.world.gen.feature
Class ConfiguredFeature<FC extends IFeatureConfig,F extends Feature<FC>>
- java.lang.Object
-
- net.minecraft.world.gen.feature.ConfiguredFeature<FC,F>
-
- All Implemented Interfaces:
IDecoratable<ConfiguredFeature<?,?>>
public class ConfiguredFeature<FC extends IFeatureConfig,F extends Feature<FC>> extends java.lang.Object implements IDecoratable<ConfiguredFeature<?,?>>
-
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<java.util.function.Supplier<ConfiguredFeature<?,?>>>
CODEC
FC
config
static com.mojang.serialization.Codec<ConfiguredFeature<?,?>>
DIRECT_CODEC
F
feature
static com.mojang.serialization.Codec<java.util.List<java.util.function.Supplier<ConfiguredFeature<?,?>>>>
LIST_CODEC
static org.apache.logging.log4j.Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description ConfiguredFeature(F p_i49900_1_, FC p_i49900_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FC
config()
ConfiguredFeature<?,?>
decorated(ConfiguredPlacement<?> p_227228_1_)
F
feature()
java.util.stream.Stream<ConfiguredFeature<?,?>>
getFeatures()
boolean
place(ISeedReader p_242765_1_, ChunkGenerator p_242765_2_, java.util.Random p_242765_3_, BlockPos p_242765_4_)
ConfiguredRandomFeatureList
weighted(float p_227227_1_)
-
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.IDecoratable
chance, count, count, countRandom, range, squared
-
-
-
-
Field Detail
-
DIRECT_CODEC
public static final com.mojang.serialization.Codec<ConfiguredFeature<?,?>> DIRECT_CODEC
-
CODEC
public static final com.mojang.serialization.Codec<java.util.function.Supplier<ConfiguredFeature<?,?>>> CODEC
-
LIST_CODEC
public static final com.mojang.serialization.Codec<java.util.List<java.util.function.Supplier<ConfiguredFeature<?,?>>>> LIST_CODEC
-
LOGGER
public static final org.apache.logging.log4j.Logger LOGGER
-
config
public final FC extends IFeatureConfig config
-
-
Method Detail
-
feature
public F feature()
-
config
public FC config()
-
decorated
public ConfiguredFeature<?,?> decorated(ConfiguredPlacement<?> p_227228_1_)
- Specified by:
decorated
in interfaceIDecoratable<FC extends IFeatureConfig>
-
weighted
public ConfiguredRandomFeatureList weighted(float p_227227_1_)
-
place
public boolean place(ISeedReader p_242765_1_, ChunkGenerator p_242765_2_, java.util.Random p_242765_3_, BlockPos p_242765_4_)
-
getFeatures
public java.util.stream.Stream<ConfiguredFeature<?,?>> getFeatures()
-
-