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