Record Class AccessWidenerFile
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.accesswidener.AccessWidenerFile
-
Constructor Summary
ConstructorsConstructorDescriptionAccessWidenerFile(String name, String modId, byte[] content)Creates an instance of aAccessWidenerFilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]content()Returns the value of thecontentrecord component.booleanIndicates whether some other object is "equal to" this one.static AccessWidenerFilefromModJar(Path modJarPath)Reads the access-widener contained in a mod jar, or returns null if there is none.inthashCode()Returns a hash code value for this object.modId()Returns the value of themodIdrecord component.name()Returns the value of thenamerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
AccessWidenerFile
Creates an instance of aAccessWidenerFilerecord class.- Parameters:
name- the value for thenamerecord componentmodId- the value for themodIdrecord componentcontent- the value for thecontentrecord component
-
-
Method Details
-
fromModJar
Reads the access-widener contained in a mod jar, or returns null if there is none. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
modId
Returns the value of themodIdrecord component.- Returns:
- the value of the
modIdrecord component
-
content
public byte[] content()Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-