Package software.bluelib.api.event.mod
Record Class ModMeta
java.lang.Object
java.lang.Record
software.bluelib.api.event.mod.ModMeta
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.logoFile()Returns the value of thelogoFilerecord component.modId()Returns the value of themodIdrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
ModMeta
public ModMeta(String modId, String displayName, String version, String description, Optional<String> logoFile) Creates an instance of aModMetarecord class.- Parameters:
modId- the value for themodIdrecord componentdisplayName- the value for thedisplayNamerecord componentversion- the value for theversionrecord componentdescription- the value for thedescriptionrecord componentlogoFile- the value for thelogoFilerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
modId
Returns the value of themodIdrecord component.- Returns:
- the value of the
modIdrecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
logoFile
Returns the value of thelogoFilerecord component.- Returns:
- the value of the
logoFilerecord component
-