Record Class InheritanceData.Field
java.lang.Object
java.lang.Record
net.minecraftforge.forgedev.legacy.tasks.InheritanceData.Field
- All Implemented Interfaces:
InheritanceDataAnnotatable
- Enclosing class:
InheritanceData
public static record InheritanceData.Field(int access, String desc, List<InheritanceData.Annotation> annotations)
extends Record
implements InheritanceDataAnnotatable
-
Constructor Summary
ConstructorsConstructorDescriptionField(int access, String desc, List<InheritanceData.Annotation> annotations) Creates an instance of aFieldrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintaccess()Returns the value of theaccessrecord component.Returns the value of theannotationsrecord component.desc()Returns the value of thedescrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Field
Creates an instance of aFieldrecord class.- Parameters:
access- the value for theaccessrecord componentdesc- the value for thedescrecord componentannotations- the value for theannotationsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
access
public int access()Returns the value of theaccessrecord component.- Returns:
- the value of the
accessrecord component
-
desc
Returns the value of thedescrecord component.- Returns:
- the value of the
descrecord component
-
annotations
Returns the value of theannotationsrecord component.- Specified by:
annotationsin interfaceInheritanceDataAnnotatable- Returns:
- the value of the
annotationsrecord component
-