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 eachlistData
item.
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
ConstructorDescriptionGeneratorTemplatesList
(String groupName, List<?> listData, List<List<ListTemplate>> templates) Creates an instance of aGeneratorTemplatesList
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegroupName
record component.final int
hashCode()
Returns a hash code value for this object.List
<?> listData()
Returns the value of thelistData
record component.Returns the value of thetemplates
record component.final String
toString()
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 aGeneratorTemplatesList
record 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 thegroupName
record component.- Returns:
- the value of the
groupName
record component
-
listData
Returns the value of thelistData
record component.- Returns:
- the value of the
listData
record component
-
templates
Returns the value of thetemplates
record component.- Returns:
- the value of the
templates
record component
-