Record Class CompositeFeatureConfiguration
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.configurations.CompositeFeatureConfiguration
- All Implemented Interfaces:
FeatureConfiguration
public record CompositeFeatureConfiguration(HolderSet<PlacedFeature> features)
extends Record
implements FeatureConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CompositeFeatureConfiguration> private final HolderSet<PlacedFeature> The field for thefeaturesrecord component.Fields inherited from interface FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionCompositeFeatureConfiguration(HolderSet<PlacedFeature> features) Creates an instance of aCompositeFeatureConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.features()Returns the value of thefeaturesrecord component.Stream<Holder<ConfiguredFeature<?, ?>>> final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
features
The field for thefeaturesrecord component. -
CODEC
-
-
Constructor Details
-
CompositeFeatureConfiguration
Creates an instance of aCompositeFeatureConfigurationrecord class.- Parameters:
features- the value for thefeaturesrecord component
-
-
Method Details
-
getSubFeatures
- Specified by:
getSubFeaturesin interfaceFeatureConfiguration
-
toString
-
hashCode
-
equals
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
Returns the value of thefeaturesrecord component.- Returns:
- the value of the
featuresrecord component
-