Class ContainerWidget

All Implemented Interfaces:
Drawable, Element, Narratable, Navigable, ParentElement, Selectable, Widget
Direct Known Subclasses:
EntryListWidget, ScrollableLayoutWidget.Container

@Environment(CLIENT) public abstract class ContainerWidget extends ScrollableWidget implements ParentElement
Mappings:
Namespace Name
named net/minecraft/client/gui/widget/ContainerWidget
intermediary net/minecraft/class_9017
official gdg
  • Field Details

    • focusedElement

      @Nullable private @Nullable Element focusedElement
      Mappings:
      Namespace Name Mixin selector
      named focusedElement Lnet/minecraft/client/gui/widget/ContainerWidget;focusedElement:Lnet/minecraft/client/gui/Element;
      intermediary field_47551 Lnet/minecraft/class_9017;field_47551:Lnet/minecraft/class_364;
      official a Lgdg;a:Lggw;
    • dragging

      private boolean dragging
      Mappings:
      Namespace Name Mixin selector
      named dragging Lnet/minecraft/client/gui/widget/ContainerWidget;dragging:Z
      intermediary field_47552 Lnet/minecraft/class_9017;field_47552:Z
      official c Lgdg;c:Z
  • Constructor Details

    • ContainerWidget

      public ContainerWidget(int x, int y, int width, int height, Text message)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/widget/ClickableWidget;<init>(IIIILnet/minecraft/text/Text;)V
      intermediary <init> Lnet/minecraft/class_339;<init>(IIIILnet/minecraft/class_2561;)V
      official <init> Lgdn;<init>(IIIILxx;)V
  • Method Details

    • isDragging

      public final boolean isDragging()
      Specified by:
      isDragging in interface ParentElement
      Mappings:
      Namespace Name Mixin selector
      named isDragging Lnet/minecraft/client/gui/ParentElement;isDragging()Z
      intermediary method_25397 Lnet/minecraft/class_4069;method_25397()Z
      official aN_ Lggv;aN_()Z
    • setDragging

      public final void setDragging(boolean dragging)
      Specified by:
      setDragging in interface ParentElement
      Mappings:
      Namespace Name Mixin selector
      named setDragging Lnet/minecraft/client/gui/ParentElement;setDragging(Z)V
      intermediary method_25398 Lnet/minecraft/class_4069;method_25398(Z)V
      official c_ Lggv;c_(Z)V
    • getFocused

      @Nullable public @Nullable Element getFocused()
      Specified by:
      getFocused in interface ParentElement
      Mappings:
      Namespace Name Mixin selector
      named getFocused Lnet/minecraft/client/gui/ParentElement;getFocused()Lnet/minecraft/client/gui/Element;
      intermediary method_25399 Lnet/minecraft/class_4069;method_25399()Lnet/minecraft/class_364;
      official aO_ Lggv;aO_()Lggw;
    • setFocused

      public void setFocused(@Nullable @Nullable Element focused)
      Specified by:
      setFocused in interface ParentElement
      Mappings:
      Namespace Name Mixin selector
      named setFocused Lnet/minecraft/client/gui/ParentElement;setFocused(Lnet/minecraft/client/gui/Element;)V
      intermediary method_25395 Lnet/minecraft/class_4069;method_25395(Lnet/minecraft/class_364;)V
      official a Lggv;a(Lggw;)V
    • getNavigationPath

      @Nullable public @Nullable GuiNavigationPath getNavigationPath(GuiNavigation navigation)
      Specified by:
      getNavigationPath in interface Element
      Specified by:
      getNavigationPath in interface ParentElement
      Overrides:
      getNavigationPath in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      named getNavigationPath Lnet/minecraft/client/gui/Element;getNavigationPath(Lnet/minecraft/client/gui/navigation/GuiNavigation;)Lnet/minecraft/client/gui/navigation/GuiNavigationPath;
      intermediary method_48205 Lnet/minecraft/class_364;method_48205(Lnet/minecraft/class_8023;)Lnet/minecraft/class_8016;
      official a Lggw;a(Lgjq;)Lgcz;
    • mouseClicked

      public boolean mouseClicked(Click click, boolean doubled)
      Callback for when a mouse button down event has been captured. The button number is identified by the constants in GLFW class.
      Specified by:
      mouseClicked in interface Element
      Specified by:
      mouseClicked in interface ParentElement
      Overrides:
      mouseClicked in class ClickableWidget
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named mouseClicked Lnet/minecraft/client/gui/Element;mouseClicked(Lnet/minecraft/client/gui/Click;Z)Z
      intermediary method_25402 Lnet/minecraft/class_364;method_25402(Lnet/minecraft/class_11909;Z)Z
      official a Lggw;a(Lgti;Z)Z
    • mouseReleased

      public boolean mouseReleased(Click click)
      Callback for when a mouse button release event has been captured. The button number is identified by the constants in GLFW class.
      Specified by:
      mouseReleased in interface Element
      Specified by:
      mouseReleased in interface ParentElement
      Overrides:
      mouseReleased in class ClickableWidget
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named mouseReleased Lnet/minecraft/client/gui/Element;mouseReleased(Lnet/minecraft/client/gui/Click;)Z
      intermediary method_25406 Lnet/minecraft/class_364;method_25406(Lnet/minecraft/class_11909;)Z
      official a Lggw;a(Lgti;)Z
    • mouseDragged

      public boolean mouseDragged(Click click, double offsetX, double offsetY)
      Callback for when a mouse button drag event has been captured. The button number is identified by the constants in GLFW class.
      Specified by:
      mouseDragged in interface Element
      Specified by:
      mouseDragged in interface ParentElement
      Overrides:
      mouseDragged in class ScrollableWidget
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named mouseDragged Lnet/minecraft/client/gui/Element;mouseDragged(Lnet/minecraft/client/gui/Click;DD)Z
      intermediary method_25403 Lnet/minecraft/class_364;method_25403(Lnet/minecraft/class_11909;DD)Z
      official a Lggw;a(Lgti;DD)Z
    • isFocused

      public boolean isFocused()
      Specified by:
      isFocused in interface Element
      Specified by:
      isFocused in interface ParentElement
      Overrides:
      isFocused in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      named isFocused Lnet/minecraft/client/gui/Element;isFocused()Z
      intermediary method_25370 Lnet/minecraft/class_364;method_25370()Z
      official aP_ Lggw;aP_()Z
    • setFocused

      public void setFocused(boolean focused)
      Specified by:
      setFocused in interface Element
      Specified by:
      setFocused in interface ParentElement
      Overrides:
      setFocused in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      named setFocused Lnet/minecraft/client/gui/Element;setFocused(Z)V
      intermediary method_25365 Lnet/minecraft/class_364;method_25365(Z)V
      official b Lggw;b(Z)V