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 - ezh$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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionOption(CyclingButtonWidget<Boolean> button, BooleanSupplier getter, @Nullable BooleanSupplier toggleable) Creates an instance of aOptionrecord class.
- 
Method SummaryModifier 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- 
buttonThe field for thebuttonrecord component.
- 
getterThe field for thegetterrecord component.
- 
toggleableThe field for thetoggleablerecord component.
 
- 
- 
Constructor Details- 
OptionOption(CyclingButtonWidget<Boolean> button, BooleanSupplier getter, @Nullable @Nullable BooleanSupplier toggleable) Creates an instance of aOptionrecord class.- Parameters:
- button- the value for the- buttonrecord component
- getter- the value for the- getterrecord component
- toggleable- the value for the- toggleablerecord component
 
 
- 
- 
Method Details- 
refreshpublic void refresh()- Mappings:
- Namespace - Name - Mixin selector - official - a- Lezh$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
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
buttonReturns the value of thebuttonrecord component.- Returns:
- the value of the buttonrecord component
 
- 
getterReturns the value of thegetterrecord component.- Returns:
- the value of the getterrecord component
 
- 
toggleableReturns the value of thetoggleablerecord component.- Returns:
- the value of the toggleablerecord component
 
 
-