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 eyw$cintermediary net/minecraft/class_8096$class_8098named net/minecraft/client/gui/screen/world/WorldScreenOptionGrid$Optionofficial aintermediary comp_1261named buttonofficial bintermediary comp_1262named getterofficial cintermediary comp_1263named toggleable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CyclingButtonWidget<Boolean>The field for thebuttonrecord component.private final BooleanSupplierThe field for thegetterrecord component.private final @Nullable BooleanSupplierThe field for thetoggleablerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionOption(CyclingButtonWidget<Boolean> button, BooleanSupplier getter, @Nullable BooleanSupplier toggleable) Creates an instance of aOptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbutton()Returns the value of thebuttonrecord component.final booleanIndicates whether some other object is "equal to" this one.getter()Returns the value of thegetterrecord component.final inthashCode()Returns a hash code value for this object.voidrefresh()Returns the value of thetoggleablerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
button
The field for thebuttonrecord component. -
getter
The field for thegetterrecord component. -
toggleable
The field for thetoggleablerecord component.
-
-
Constructor Details
-
Option
Option(CyclingButtonWidget<Boolean> button, BooleanSupplier getter, @Nullable @Nullable BooleanSupplier toggleable) Creates an instance of aOptionrecord class.- Parameters:
button- the value for thebuttonrecord componentgetter- the value for thegetterrecord componenttoggleable- the value for thetoggleablerecord component
-
-
Method Details
-
refresh
public void refresh()- Mappings:
Namespace Name Mixin selector official aLeyw$c;a()Vintermediary method_48688Lnet/minecraft/class_8096$class_8098;method_48688()Vnamed refreshLnet/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 thebuttonrecord component.- Returns:
- the value of the
buttonrecord component
-
getter
Returns the value of thegetterrecord component.- Returns:
- the value of the
getterrecord component
-
toggleable
Returns the value of thetoggleablerecord component.- Returns:
- the value of the
toggleablerecord component
-