Record Class RelicSlot
java.lang.Object
java.lang.Record
com.github.darksoulq.relique.api.RelicSlot
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondropRule()Returns the value of thedropRulerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.icon()Returns the value of theiconrecord component.intorder()Returns the value of theorderrecord component.intsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.List<net.kyori.adventure.key.Key> Returns the value of thevalidatorsrecord component.
-
Field Details
-
CODEC
-
-
Constructor Details
-
RelicSlot
public RelicSlot(int order, String icon, int size, DropRule dropRule, List<net.kyori.adventure.key.Key> validators) Creates an instance of aRelicSlotrecord class.- Parameters:
order- the value for theorderrecord componenticon- the value for theiconrecord componentsize- the value for thesizerecord componentdropRule- the value for thedropRulerecord componentvalidators- the value for thevalidatorsrecord 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. -
order
public int order()Returns the value of theorderrecord component.- Returns:
- the value of the
orderrecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
dropRule
Returns the value of thedropRulerecord component.- Returns:
- the value of the
dropRulerecord component
-
validators
Returns the value of thevalidatorsrecord component.- Returns:
- the value of the
validatorsrecord component
-