Record Class Loupe.EntryConfig
java.lang.Object
java.lang.Record
io.github.pylonmc.pylon.content.science.Loupe.EntryConfig
- Enclosing class:
Loupe
-
Constructor Summary
ConstructorsConstructorDescriptionEntryConfig(int uses, int points) Creates an instance of aEntryConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static Loupe.EntryConfigloadFrom(io.github.pylonmc.rebar.config.ConfigSection section) intpoints()Returns the value of thepointsrecord component.final StringtoString()Returns a string representation of this record class.intuses()Returns the value of theusesrecord component.
-
Constructor Details
-
EntryConfig
public EntryConfig(int uses, int points) Creates an instance of aEntryConfigrecord class.- Parameters:
uses- the value for theusesrecord componentpoints- the value for thepointsrecord component
-
-
Method Details
-
loadFrom
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
uses
public int uses()Returns the value of theusesrecord component.- Returns:
- the value of the
usesrecord component
-
points
public int points()Returns the value of thepointsrecord component.- Returns:
- the value of the
pointsrecord component
-