Class EmptyWidget

All Implemented Interfaces:
Drawable, Element, Narratable, Selectable

@Environment(CLIENT) public class EmptyWidget extends ClickableWidget
Mappings:
Namespace Name
official elz
intermediary net/minecraft/class_7852
named net/minecraft/client/gui/widget/EmptyWidget
  • Constructor Details

    • EmptyWidget

      public EmptyWidget(int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lelz;<init>(II)V
      intermediary <init> Lnet/minecraft/class_7852;<init>(II)V
      named <init> Lnet/minecraft/client/gui/widget/EmptyWidget;<init>(II)V
    • EmptyWidget

      public EmptyWidget(int x, int y, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lelz;<init>(IIII)V
      intermediary <init> Lnet/minecraft/class_7852;<init>(IIII)V
      named <init> Lnet/minecraft/client/gui/widget/EmptyWidget;<init>(IIII)V
  • Method Details

    • appendClickableNarrations

      public void appendClickableNarrations(NarrationMessageBuilder builder)
      Specified by:
      appendClickableNarrations in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      official a Lekw;a(Lenk;)V
      intermediary method_47399 Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)V
      named appendClickableNarrations Lnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
    • changeFocus

      public boolean changeFocus(boolean lookForwards)
      Changes the focusing element by cycling to the next/previous element. This action is done typically when the user has pressed the 'Tab' or 'Ctrl+Tab' key.
      Specified by:
      changeFocus in interface Element
      Overrides:
      changeFocus in class ClickableWidget
      Parameters:
      lookForwards - true to cycle forwards, otherwise cycle backwards
      Returns:
      true to indicate that the event handling is successful/valid
      Mappings:
      Namespace Name Mixin selector
      official b Lemg;b(Z)Z
      intermediary method_25407 Lnet/minecraft/class_364;method_25407(Z)Z
      named changeFocus Lnet/minecraft/client/gui/Element;changeFocus(Z)Z
    • ofWidth

      public static ClickableWidget ofWidth(int width)
      Mappings:
      Namespace Name Mixin selector
      official g Lelz;g(I)Lekw;
      intermediary method_46512 Lnet/minecraft/class_7852;method_46512(I)Lnet/minecraft/class_339;
      named ofWidth Lnet/minecraft/client/gui/widget/EmptyWidget;ofWidth(I)Lnet/minecraft/client/gui/widget/ClickableWidget;
    • ofHeight

      public static ClickableWidget ofHeight(int height)
      Mappings:
      Namespace Name Mixin selector
      official h Lelz;h(I)Lekw;
      intermediary method_46513 Lnet/minecraft/class_7852;method_46513(I)Lnet/minecraft/class_339;
      named ofHeight Lnet/minecraft/client/gui/widget/EmptyWidget;ofHeight(I)Lnet/minecraft/client/gui/widget/ClickableWidget;