public class SingleRandomFeature extends java.lang.Object implements IFeatureConfig
Modifier and Type | Field and Description |
---|---|
java.util.List<ConfiguredFeature<?>> |
features |
NO_FEATURE_CONFIG
Constructor and Description |
---|
SingleRandomFeature(Feature<?>[] featuresIn,
IFeatureConfig[] configsIn) |
SingleRandomFeature(java.util.List<ConfiguredFeature<?>> features) |
Modifier and Type | Method and Description |
---|---|
static <T> SingleRandomFeature |
deserialize(com.mojang.datafixers.Dynamic<T> p_214664_0_) |
<T> com.mojang.datafixers.Dynamic<T> |
serialize(com.mojang.datafixers.types.DynamicOps<T> ops) |
public final java.util.List<ConfiguredFeature<?>> features
public SingleRandomFeature(java.util.List<ConfiguredFeature<?>> features)
public SingleRandomFeature(Feature<?>[] featuresIn, IFeatureConfig[] configsIn)
public <T> com.mojang.datafixers.Dynamic<T> serialize(com.mojang.datafixers.types.DynamicOps<T> ops)
serialize
in interface IFeatureConfig
public static <T> SingleRandomFeature deserialize(com.mojang.datafixers.Dynamic<T> p_214664_0_)