Record Class WorldScreenOptionGrid.Option
java.lang.Object
java.lang.Record
net.minecraft.client.gui.screen.world.WorldScreenOptionGrid.Option
- Record Components:
-
getter
-toggleable
-
- Enclosing class:
WorldScreenOptionGrid
@Environment(CLIENT)
private static record WorldScreenOptionGrid.Option(CyclingButtonWidget<Boolean> button, BooleanSupplier getter, @Nullable BooleanSupplier toggleable)
extends Record
- Mappings:
Namespace Name official eyq$c
intermediary net/minecraft/class_8096$class_8098
named net/minecraft/client/gui/screen/world/WorldScreenOptionGrid$Option
official a
intermediary comp_1261
named button
official b
intermediary comp_1262
named getter
official c
intermediary comp_1263
named toggleable
-
Field Summary
Modifier and TypeFieldDescriptionprivate final CyclingButtonWidget<Boolean>
The field for thebutton
record component.private final BooleanSupplier
The field for thegetter
record component.private final @Nullable BooleanSupplier
The field for thetoggleable
record component. -
Constructor Summary
ConstructorDescriptionOption
(CyclingButtonWidget<Boolean> button, BooleanSupplier getter, @Nullable BooleanSupplier toggleable) Creates an instance of aOption
record class. -
Method Summary
Modifier and TypeMethodDescriptionbutton()
Returns the value of thebutton
record component.final boolean
Indicates whether some other object is "equal to" this one.getter()
Returns the value of thegetter
record component.final int
hashCode()
Returns a hash code value for this object.void
refresh()
Returns the value of thetoggleable
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
button
The field for thebutton
record component. -
getter
The field for thegetter
record component. -
toggleable
The field for thetoggleable
record component.
-
-
Constructor Details
-
Option
Option(CyclingButtonWidget<Boolean> button, BooleanSupplier getter, @Nullable @Nullable BooleanSupplier toggleable) Creates an instance of aOption
record class.- Parameters:
button
- the value for thebutton
record componentgetter
- the value for thegetter
record componenttoggleable
- the value for thetoggleable
record component
-
-
Method Details
-
refresh
public void refresh()- Mappings:
Namespace Name Mixin selector official a
Leyq$c;a()V
intermediary method_48688
Lnet/minecraft/class_8096$class_8098;method_48688()V
named refresh
Lnet/minecraft/client/gui/screen/world/WorldScreenOptionGrid$Option;refresh()V
-
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)
. -
button
Returns the value of thebutton
record component.- Returns:
- the value of the
button
record component
-
getter
Returns the value of thegetter
record component.- Returns:
- the value of the
getter
record component
-
toggleable
Returns the value of thetoggleable
record component.- Returns:
- the value of the
toggleable
record component
-