Record Class TemplateFeatureConfiguration
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.configurations.TemplateFeatureConfiguration
- All Implemented Interfaces:
FeatureConfiguration
public record TemplateFeatureConfiguration(WeightedList<TemplateFeatureConfiguration.TemplateEntry> templates)
extends Record
implements FeatureConfiguration
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<TemplateFeatureConfiguration> private final WeightedList<TemplateFeatureConfiguration.TemplateEntry> The field for thetemplatesrecord component.Fields inherited from interface FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aTemplateFeatureConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thetemplatesrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface FeatureConfiguration
getSubFeatures
-
Field Details
-
templates
The field for thetemplatesrecord component. -
CODEC
-
-
Constructor Details
-
TemplateFeatureConfiguration
public TemplateFeatureConfiguration(WeightedList<TemplateFeatureConfiguration.TemplateEntry> templates) Creates an instance of aTemplateFeatureConfigurationrecord class.- Parameters:
templates- the value for thetemplatesrecord component
-
-
Method Details
-
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). -
templates
Returns the value of thetemplatesrecord component.- Returns:
- the value of the
templatesrecord component
-