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
named net/minecraft/client/gui/screen/world/WorldScreenOptionGrid$OptionBuilder
intermediary net/minecraft/class_8096$class_8099
official fsp$d
  • Field Details

    • text

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

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

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

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

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

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

    • OptionBuilder

      OptionBuilder(Text text, BooleanSupplier getter, Consumer<Boolean> setter, int buttonWidth)
      Mappings:
      Namespace Name Mixin selector
      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
      intermediary <init> Lnet/minecraft/class_8096$class_8099;<init>(Lnet/minecraft/class_2561;Ljava/util/function/BooleanSupplier;Ljava/util/function/Consumer;I)V
      official <init> Lfsp$d;<init>(Lwu;Ljava/util/function/BooleanSupplier;Ljava/util/function/Consumer;I)V
  • Method Details

    • toggleable

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

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

      WorldScreenOptionGrid.Option build(WorldScreenOptionGrid.Builder gridBuilder, GridWidget gridWidget, int row)
      Mappings:
      Namespace Name Mixin selector
      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;
      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;
      official a Lfsp$d;a(Lfsp$a;Lflg;I)Lfsp$c;