Package net.minecraft.client.gui.widget
Record Class OptionListWidget.class_12292
java.lang.Object
java.lang.Record
net.minecraft.client.gui.widget.OptionListWidget.class_12292
- Record Components:
widget-optionInstance-
- Enclosing class:
OptionListWidget
@Environment(CLIENT)
public static record OptionListWidget.class_12292(ClickableWidget widget, @Nullable SimpleOption<?> optionInstance)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/gui/widget/OptionListWidget$class_12292intermediary net/minecraft/class_353$class_12292official gij$dnamed widgetintermediary comp_5179official anamed optionInstanceintermediary comp_5180official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable SimpleOption<?> The field for theoptionInstancerecord component.private final ClickableWidgetThe field for thewidgetrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_12292(ClickableWidget clickableWidget) class_12292(ClickableWidget widget, @Nullable SimpleOption<?> optionInstance) Creates an instance of aclass_12292record 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.@Nullable SimpleOption<?> Returns the value of theoptionInstancerecord component.final StringtoString()Returns a string representation of this record class.widget()Returns the value of thewidgetrecord component.
-
Field Details
-
widget
The field for thewidgetrecord component. -
optionInstance
The field for theoptionInstancerecord component.
-
-
Constructor Details
-
class_12292
-
class_12292
Creates an instance of aclass_12292record class.- Parameters:
widget- the value for thewidgetrecord componentoptionInstance- the value for theoptionInstancerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
widget
Returns the value of thewidgetrecord component.- Returns:
- the value of the
widgetrecord component
-
optionInstance
Returns the value of theoptionInstancerecord component.- Returns:
- the value of the
optionInstancerecord component
-