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