public class ConfiguredFeature<FC extends IFeatureConfig,F extends Feature<FC>>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
FC |
config |
F |
feature |
static org.apache.logging.log4j.Logger |
LOGGER |
Constructor and Description |
---|
ConfiguredFeature(F featureIn,
com.mojang.datafixers.Dynamic<?> dynamicIn) |
ConfiguredFeature(F featureIn,
FC configIn) |
Modifier and Type | Method and Description |
---|---|
static <T> ConfiguredFeature<?,?> |
deserialize(com.mojang.datafixers.Dynamic<T> p_222736_0_) |
boolean |
place(IWorld worldIn,
ChunkGenerator<? extends GenerationSettings> generator,
java.util.Random rand,
BlockPos pos) |
<T> com.mojang.datafixers.Dynamic<T> |
serialize(com.mojang.datafixers.types.DynamicOps<T> opsIn) |
ConfiguredRandomFeatureList<FC> |
withChance(float p_227227_1_) |
ConfiguredFeature<?,?> |
withPlacement(ConfiguredPlacement<?> p_227228_1_) |
public static final org.apache.logging.log4j.Logger LOGGER
public final FC extends IFeatureConfig config
public ConfiguredFeature(F featureIn, com.mojang.datafixers.Dynamic<?> dynamicIn)
public ConfiguredFeature<?,?> withPlacement(ConfiguredPlacement<?> p_227228_1_)
public ConfiguredRandomFeatureList<FC> withChance(float p_227227_1_)
public <T> com.mojang.datafixers.Dynamic<T> serialize(com.mojang.datafixers.types.DynamicOps<T> opsIn)
public boolean place(IWorld worldIn, ChunkGenerator<? extends GenerationSettings> generator, java.util.Random rand, BlockPos pos)
public static <T> ConfiguredFeature<?,?> deserialize(com.mojang.datafixers.Dynamic<T> p_222736_0_)