Package net.mcreator.plugin.modapis
Record Class ModAPIImplementation
java.lang.Object
java.lang.Record
net.mcreator.plugin.modapis.ModAPIImplementation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.gradle()
Returns the value of thegradle
record component.final int
hashCode()
Returns a hash code value for this object.parent()
Returns the value of theparent
record component.boolean
Returns the value of therequiredWhenEnabled
record component.Returns the value of theresource_paths
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theupdate_files
record 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 aModAPIImplementation
record class.- Parameters:
parent
- the value for theparent
record componentgradle
- the value for thegradle
record componentupdate_files
- the value for theupdate_files
record componentresource_paths
- the value for theresource_paths
record componentrequiredWhenEnabled
- the value for therequiredWhenEnabled
record 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 theparent
record component.- Returns:
- the value of the
parent
record component
-
gradle
Returns the value of thegradle
record component.- Returns:
- the value of the
gradle
record component
-
update_files
Returns the value of theupdate_files
record component.- Returns:
- the value of the
update_files
record component
-
resource_paths
Returns the value of theresource_paths
record component.- Returns:
- the value of the
resource_paths
record component
-
requiredWhenEnabled
public boolean requiredWhenEnabled()Returns the value of therequiredWhenEnabled
record component.- Returns:
- the value of the
requiredWhenEnabled
record component
-