Package net.minecraft.client.gui.widget
Record Class OptionListWidget.OptionAssociatedWidget
java.lang.Object
java.lang.Record
net.minecraft.client.gui.widget.OptionListWidget.OptionAssociatedWidget
- Record Components:
widget-optionInstance-
- Enclosing class:
OptionListWidget
@Environment(CLIENT)
public static record OptionListWidget.OptionAssociatedWidget(ClickableWidget widget, @Nullable SimpleOption<?> optionInstance)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/gui/widget/OptionListWidget$OptionAssociatedWidgetintermediary net/minecraft/class_353$class_12292official git$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
ConstructorsConstructorDescriptionOptionAssociatedWidget(ClickableWidget widget, @Nullable SimpleOption<?> optionInstance) Creates an instance of aOptionAssociatedWidgetrecord 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
-
OptionAssociatedWidget
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/widget/OptionListWidget$OptionAssociatedWidget;<init>(Lnet/minecraft/client/gui/widget/ClickableWidget;)Vintermediary <init>Lnet/minecraft/class_353$class_12292;<init>(Lnet/minecraft/class_339;)Vofficial <init>Lgit$d;<init>(Lght;)V
-
OptionAssociatedWidget
Creates an instance of aOptionAssociatedWidgetrecord 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
-