Record Class TemplateFeatureConfiguration.TemplateEntry
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.configurations.TemplateFeatureConfiguration.TemplateEntry
- Enclosing class:
TemplateFeatureConfiguration
public static record TemplateFeatureConfiguration.TemplateEntry(Identifier template, List<Rotation> rotations)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<TemplateFeatureConfiguration.TemplateEntry> The field for therotationsrecord component.private final IdentifierThe field for thetemplaterecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTemplateEntry(Identifier template, List<Rotation> rotations) Creates an instance of aTemplateEntryrecord 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.of(Identifier template) Returns the value of therotationsrecord component.template()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
template
The field for thetemplaterecord component. -
rotations
-
CODEC
public static final com.mojang.serialization.Codec<TemplateFeatureConfiguration.TemplateEntry> CODEC
-
-
Constructor Details
-
TemplateEntry
Creates an instance of aTemplateEntryrecord class.- Parameters:
template- the value for thetemplaterecord componentrotations- the value for therotationsrecord component
-
-
Method Details
-
of
-
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). -
template
Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord component
-
rotations
-