Package net.mcreator.plugin.modapis
Record Class ModAPIImplementation
java.lang.Object
java.lang.Record
net.mcreator.plugin.modapis.ModAPIImplementation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.gradle()Returns the value of thegradlerecord component.final inthashCode()Returns a hash code value for this object.parent()Returns the value of theparentrecord component.booleanReturns the value of therequiredWhenEnabledrecord component.Returns the value of theresource_pathsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdate_filesrecord component.
-
Constructor Details
-
ModAPIImplementation
public ModAPIImplementation(ModAPI parent, String gradle, @Nullable List<String> update_files, @Nullable Map<String, String> resource_paths, boolean requiredWhenEnabled) Creates an instance of aModAPIImplementationrecord class.- Parameters:
parent- the value for theparentrecord componentgradle- the value for thegradlerecord componentupdate_files- the value for theupdate_filesrecord componentresource_paths- the value for theresource_pathsrecord componentrequiredWhenEnabled- the value for therequiredWhenEnabledrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
parent
Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-
gradle
Returns the value of thegradlerecord component.- Returns:
- the value of the
gradlerecord component
-
update_files
Returns the value of theupdate_filesrecord component.- Returns:
- the value of the
update_filesrecord component
-
resource_paths
Returns the value of theresource_pathsrecord component.- Returns:
- the value of the
resource_pathsrecord component
-
requiredWhenEnabled
public boolean requiredWhenEnabled()Returns the value of therequiredWhenEnabledrecord component.- Returns:
- the value of the
requiredWhenEnabledrecord component
-