Class WorldScreenOptionGrid.OptionBuilder

java.lang.Object
net.minecraft.client.gui.screen.world.WorldScreenOptionGrid.OptionBuilder
Enclosing class:
WorldScreenOptionGrid

@Environment(CLIENT) public static class WorldScreenOptionGrid.OptionBuilder extends Object
Mappings:
Namespace Name
official eyq$d
intermediary net/minecraft/class_8096$class_8099
named net/minecraft/client/gui/screen/world/WorldScreenOptionGrid$OptionBuilder
  • Field Details

    • text

      private final Text text
      Mappings:
      Namespace Name Mixin selector
      official a Leyq$d;a:Lsw;
      intermediary field_42204 Lnet/minecraft/class_8096$class_8099;field_42204:Lnet/minecraft/class_2561;
      named text Lnet/minecraft/client/gui/screen/world/WorldScreenOptionGrid$OptionBuilder;text:Lnet/minecraft/text/Text;
    • getter

      private final BooleanSupplier getter
      Mappings:
      Namespace Name Mixin selector
      official b Leyq$d;b:Ljava/util/function/BooleanSupplier;
      intermediary field_42205 Lnet/minecraft/class_8096$class_8099;field_42205:Ljava/util/function/BooleanSupplier;
      named getter Lnet/minecraft/client/gui/screen/world/WorldScreenOptionGrid$OptionBuilder;getter:Ljava/util/function/BooleanSupplier;
    • setter

      private final Consumer<Boolean> setter
      Mappings:
      Namespace Name Mixin selector
      official c Leyq$d;c:Ljava/util/function/Consumer;
      intermediary field_42206 Lnet/minecraft/class_8096$class_8099;field_42206:Ljava/util/function/Consumer;
      named setter Lnet/minecraft/client/gui/screen/world/WorldScreenOptionGrid$OptionBuilder;setter:Ljava/util/function/Consumer;
    • tooltip

      @Nullable private @Nullable Text tooltip
      Mappings:
      Namespace Name Mixin selector
      official d Leyq$d;d:Lsw;
      intermediary field_42207 Lnet/minecraft/class_8096$class_8099;field_42207:Lnet/minecraft/class_2561;
      named tooltip Lnet/minecraft/client/gui/screen/world/WorldScreenOptionGrid$OptionBuilder;tooltip:Lnet/minecraft/text/Text;
    • toggleable

      @Nullable private @Nullable BooleanSupplier toggleable
      Mappings:
      Namespace Name Mixin selector
      official e Leyq$d;e:Ljava/util/function/BooleanSupplier;
      intermediary field_42208 Lnet/minecraft/class_8096$class_8099;field_42208:Ljava/util/function/BooleanSupplier;
      named toggleable Lnet/minecraft/client/gui/screen/world/WorldScreenOptionGrid$OptionBuilder;toggleable:Ljava/util/function/BooleanSupplier;
    • buttonWidth

      private final int buttonWidth
      Mappings:
      Namespace Name Mixin selector
      official f Leyq$d;f:I
      intermediary field_42209 Lnet/minecraft/class_8096$class_8099;field_42209:I
      named buttonWidth Lnet/minecraft/client/gui/screen/world/WorldScreenOptionGrid$OptionBuilder;buttonWidth:I
  • Constructor Details

    • OptionBuilder

      OptionBuilder(Text text, BooleanSupplier getter, Consumer<Boolean> setter, int buttonWidth)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leyq$d;<init>(Lsw;Ljava/util/function/BooleanSupplier;Ljava/util/function/Consumer;I)V
      intermediary <init> Lnet/minecraft/class_8096$class_8099;<init>(Lnet/minecraft/class_2561;Ljava/util/function/BooleanSupplier;Ljava/util/function/Consumer;I)V
      named <init> Lnet/minecraft/client/gui/screen/world/WorldScreenOptionGrid$OptionBuilder;<init>(Lnet/minecraft/text/Text;Ljava/util/function/BooleanSupplier;Ljava/util/function/Consumer;I)V
  • Method Details

    • toggleable

      public WorldScreenOptionGrid.OptionBuilder toggleable(BooleanSupplier toggleable)
      Mappings:
      Namespace Name Mixin selector
      official a Leyq$d;a(Ljava/util/function/BooleanSupplier;)Leyq$d;
      intermediary method_48693 Lnet/minecraft/class_8096$class_8099;method_48693(Ljava/util/function/BooleanSupplier;)Lnet/minecraft/class_8096$class_8099;
      named toggleable Lnet/minecraft/client/gui/screen/world/WorldScreenOptionGrid$OptionBuilder;toggleable(Ljava/util/function/BooleanSupplier;)Lnet/minecraft/client/gui/screen/world/WorldScreenOptionGrid$OptionBuilder;
    • tooltip

      public WorldScreenOptionGrid.OptionBuilder tooltip(Text tooltip)
      Mappings:
      Namespace Name Mixin selector
      official a Leyq$d;a(Lsw;)Leyq$d;
      intermediary method_48694 Lnet/minecraft/class_8096$class_8099;method_48694(Lnet/minecraft/class_2561;)Lnet/minecraft/class_8096$class_8099;
      named tooltip Lnet/minecraft/client/gui/screen/world/WorldScreenOptionGrid$OptionBuilder;tooltip(Lnet/minecraft/text/Text;)Lnet/minecraft/client/gui/screen/world/WorldScreenOptionGrid$OptionBuilder;
    • build

      WorldScreenOptionGrid.Option build(WorldScreenOptionGrid.Builder gridBuilder, GridWidget gridWidget, int row)
      Mappings:
      Namespace Name Mixin selector
      official a Leyq$d;a(Leyq$a;Lerq;I)Leyq$c;
      intermediary method_48691 Lnet/minecraft/class_8096$class_8099;method_48691(Lnet/minecraft/class_8096$class_8097;Lnet/minecraft/class_7845;I)Lnet/minecraft/class_8096$class_8098;
      named build Lnet/minecraft/client/gui/screen/world/WorldScreenOptionGrid$OptionBuilder;build(Lnet/minecraft/client/gui/screen/world/WorldScreenOptionGrid$Builder;Lnet/minecraft/client/gui/widget/GridWidget;I)Lnet/minecraft/client/gui/screen/world/WorldScreenOptionGrid$Option;