Package net.mcreator.generator
Record Class GeneratorTemplatesList
java.lang.Object
java.lang.Record
net.mcreator.generator.GeneratorTemplatesList
- Record Components:
groupName- The name of this group of templates shown in workspace panel.listData- The collection used by workspace to generate given templates.templates- The list of templates to be generated for eachlistDataitem.
public record GeneratorTemplatesList(String groupName, List<?> listData, List<List<ListTemplate>> templates)
extends Record
A generator templates list is used for generating several similar templates for each item on a list provided by given
mod element.
-
Constructor Summary
ConstructorsConstructorDescriptionGeneratorTemplatesList(String groupName, List<?> listData, List<List<ListTemplate>> templates) Creates an instance of aGeneratorTemplatesListrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegroupNamerecord component.final inthashCode()Returns a hash code value for this object.List<?> listData()Returns the value of thelistDatarecord component.Returns the value of thetemplatesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeneratorTemplatesList
public GeneratorTemplatesList(String groupName, List<?> listData, List<List<ListTemplate>> templates) Creates an instance of aGeneratorTemplatesListrecord class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
groupName
Returns the value of thegroupNamerecord component.- Returns:
- the value of the
groupNamerecord component
-
listData
Returns the value of thelistDatarecord component.- Returns:
- the value of the
listDatarecord component
-
templates
Returns the value of thetemplatesrecord component.- Returns:
- the value of the
templatesrecord component
-