Contents
Record Class DropdownEntryInfo
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.ui.DropdownEntryInfo
public record DropdownEntryInfo(LocalizableString label, String value, @Nullable LocalizableString tooltip)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDropdownEntryInfo(LocalizableString label, String value) DropdownEntryInfo(LocalizableString label, String value, LocalizableString tooltip) Creates an instance of aDropdownEntryInforecord 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.label()Returns the value of thelabelrecord component.tooltip()Returns the value of thetooltiprecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
CODEC
-
-
Constructor Details
-
DropdownEntryInfo
-
DropdownEntryInfo
public DropdownEntryInfo(LocalizableString label, String value, @Nullable LocalizableString tooltip) Creates an instance of aDropdownEntryInforecord class.- Parameters:
label- the value for thelabelrecord componentvalue- the value for thevaluerecord componenttooltip- the value for thetooltiprecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
tooltip
Returns the value of thetooltiprecord component.- Returns:
- the value of the
tooltiprecord component
-