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 named net/minecraft/client/gui/screen/world/WorldScreenOptionGrid$Option
intermediary net/minecraft/class_8096$class_8098
official fsb$c
named button
intermediary comp_1261
official a
named getter
intermediary comp_1262
official b
named toggleable
intermediary comp_1263
official c
-
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 named refresh
Lnet/minecraft/client/gui/screen/world/WorldScreenOptionGrid$Option;refresh()V
intermediary method_48688
Lnet/minecraft/class_8096$class_8098;method_48688()V
official a
Lfsb$c;a()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
-