Record Class SuggestionData.Entry
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.client.command.suggest.nbt.SuggestionData.Entry
- Enclosing class:
SuggestionData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
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.intpriority()Returns the value of thepriorityrecord component.subtext()Returns the value of thesubtextrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
RECOMMENDED
public static final int RECOMMENDED- See Also:
-
NORMAL
public static final int NORMAL- See Also:
-
IRRELEVANT
public static final int IRRELEVANT- See Also:
-
-
Constructor Details
-
Entry
Creates an instance of aEntryrecord class.- Parameters:
subtext- the value for thesubtextrecord componentpriority- the value for thepriorityrecord 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. -
subtext
Returns the value of thesubtextrecord component.- Returns:
- the value of the
subtextrecord component
-
priority
public int priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-