Record Class RandomFeatureConfiguration
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.configurations.RandomFeatureConfiguration
- All Implemented Interfaces:
FeatureConfiguration
@Deprecated
public record RandomFeatureConfiguration(List<WeightedPlacedFeature> features, Holder<PlacedFeature> defaultFeature)
extends Record
implements FeatureConfiguration
Deprecated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<RandomFeatureConfiguration> Deprecated.private final Holder<PlacedFeature> Deprecated.The field for thedefaultFeaturerecord component.private final List<WeightedPlacedFeature> Deprecated.The field for thefeaturesrecord component.Fields inherited from interface FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionRandomFeatureConfiguration(List<WeightedPlacedFeature> features, Holder<PlacedFeature> defaultFeature) Deprecated.Creates an instance of aRandomFeatureConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the value of thedefaultFeaturerecord component.final booleanDeprecated.Indicates whether some other object is "equal to" this one.features()Deprecated.Returns the value of thefeaturesrecord component.Stream<Holder<ConfiguredFeature<?, ?>>> Deprecated.final inthashCode()Deprecated.Returns a hash code value for this object.final StringtoString()Deprecated.Returns a string representation of this record class.
-
Field Details
-
features
Deprecated.The field for thefeaturesrecord component. -
defaultFeature
Deprecated.The field for thedefaultFeaturerecord component. -
CODEC
Deprecated.
-
-
Constructor Details
-
RandomFeatureConfiguration
public RandomFeatureConfiguration(List<WeightedPlacedFeature> features, Holder<PlacedFeature> defaultFeature) Deprecated.Creates an instance of aRandomFeatureConfigurationrecord class.- Parameters:
features- the value for thefeaturesrecord componentdefaultFeature- the value for thedefaultFeaturerecord component
-
-
Method Details
-
getSubFeatures
Deprecated.- Specified by:
getSubFeaturesin interfaceFeatureConfiguration
-
toString
-
hashCode
-
equals
Deprecated.Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
features
Deprecated.Returns the value of thefeaturesrecord component.- Returns:
- the value of the
featuresrecord component
-
defaultFeature
Deprecated.Returns the value of thedefaultFeaturerecord component.- Returns:
- the value of the
defaultFeaturerecord component
-