public class RandomFeatureConfig extends Object implements FeatureConfig
Modifier and Type | Field and Description |
---|---|
ConfiguredFeature<?,?> |
defaultFeature |
List<RandomFeatureEntry<?>> |
features |
DEFAULT
Constructor and Description |
---|
RandomFeatureConfig(List<RandomFeatureEntry<?>> features,
ConfiguredFeature<?,?> defaultFeature) |
Modifier and Type | Method and Description |
---|---|
static <T> RandomFeatureConfig |
deserialize(com.mojang.datafixers.Dynamic<T> dynamic) |
<T> com.mojang.datafixers.Dynamic<T> |
serialize(com.mojang.datafixers.types.DynamicOps<T> ops) |
public final List<RandomFeatureEntry<?>> features
public final ConfiguredFeature<?,?> defaultFeature
public RandomFeatureConfig(List<RandomFeatureEntry<?>> features, ConfiguredFeature<?,?> defaultFeature)
public <T> com.mojang.datafixers.Dynamic<T> serialize(com.mojang.datafixers.types.DynamicOps<T> ops)
serialize
in interface FeatureConfig
public static <T> RandomFeatureConfig deserialize(com.mojang.datafixers.Dynamic<T> dynamic)