Record Class TemplateFeatureConfiguration.TemplateEntry
java.lang.Object
java.lang.Record
dev.wyck.worldgen.feature.configurations.TemplateFeatureConfiguration.TemplateEntry
- Record Components:
template- the resource key of the structure templaterotations- the rotations this template may be placed with
- Enclosing interface:
TemplateFeatureConfiguration
@AsOf("3.0.1")
public static record TemplateFeatureConfiguration.TemplateEntry(ResourceKey template, List<Rotation> rotations)
extends Record
A single template entry: a structure template and the rotations it is allowed to be placed with.
- Since:
- 3.0.1
-
Constructor Summary
ConstructorsConstructorDescriptionTemplateEntry(ResourceKey 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(ResourceKey template) Creates a template entry that allows every rotation.of(ResourceKey template, Rotation... rotations) Creates a template entry with the given rotations.Returns the value of therotationsrecord component.template()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
of
Creates a template entry that allows every rotation.- Parameters:
template- the resource key of the structure template- Returns:
- a new template entry
- Since:
- 3.0.1
-
of
@AsOf("3.0.1") public static TemplateFeatureConfiguration.TemplateEntry of(ResourceKey template, Rotation... rotations) Creates a template entry with the given rotations.- Parameters:
template- the resource key of the structure templaterotations- the rotations this template may be placed with- Returns:
- a new template entry
- Since:
- 3.0.1
-
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
-
rotations
-