public class ProbabilityConfig extends Object implements CarverConfig, FeatureConfig
Modifier and Type | Field and Description |
---|---|
float |
probability |
DEFAULT
DEFAULT
Constructor and Description |
---|
ProbabilityConfig(float probability) |
Modifier and Type | Method and Description |
---|---|
static <T> ProbabilityConfig |
deserialize(com.mojang.datafixers.Dynamic<T> dynamic) |
<T> com.mojang.datafixers.Dynamic<T> |
serialize(com.mojang.datafixers.types.DynamicOps<T> ops) |
public <T> com.mojang.datafixers.Dynamic<T> serialize(com.mojang.datafixers.types.DynamicOps<T> ops)
serialize
in interface FeatureConfig
public static <T> ProbabilityConfig deserialize(com.mojang.datafixers.Dynamic<T> dynamic)