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