public class MineshaftConfig extends java.lang.Object implements IFeatureConfig
Modifier and Type | Field and Description |
---|---|
double |
probability |
MineshaftStructure.Type |
type |
NO_FEATURE_CONFIG
Constructor and Description |
---|
MineshaftConfig(double probability,
MineshaftStructure.Type type) |
Modifier and Type | Method and Description |
---|---|
static <T> MineshaftConfig |
deserialize(com.mojang.datafixers.Dynamic<T> data) |
<T> com.mojang.datafixers.Dynamic<T> |
serialize(com.mojang.datafixers.types.DynamicOps<T> ops) |
public final double probability
public final MineshaftStructure.Type type
public MineshaftConfig(double probability, MineshaftStructure.Type type)
public <T> com.mojang.datafixers.Dynamic<T> serialize(com.mojang.datafixers.types.DynamicOps<T> ops)
serialize
in interface IFeatureConfig
public static <T> MineshaftConfig deserialize(com.mojang.datafixers.Dynamic<T> data)