Record Class WorldScreenOptionGrid.Option

java.lang.Object
java.lang.Record
net.minecraft.client.gui.screen.world.WorldScreenOptionGrid.Option
Record Components:
button -
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 fdf$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 Details

  • Constructor Details

  • Method Details

    • refresh

      public void refresh()
      Mappings:
      Namespace Name Mixin selector
      official a Lfdf$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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • button

      public CyclingButtonWidget<Boolean> button()
      Returns the value of the button record component.
      Returns:
      the value of the button record component
    • getter

      public BooleanSupplier getter()
      Returns the value of the getter record component.
      Returns:
      the value of the getter record component
    • toggleable

      @Nullable public @Nullable BooleanSupplier toggleable()
      Returns the value of the toggleable record component.
      Returns:
      the value of the toggleable record component