Class ContainerWidget

java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.ContainerWidget
All Implemented Interfaces:
Drawable, Element, Narratable, Navigable, ParentElement, Selectable, Widget
Direct Known Subclasses:
EntryListWidget

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

    • focusedElement

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

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

    • ContainerWidget

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

    • isDragging

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

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

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

      public void setFocused(@Nullable @Nullable Element focused)
      Specified by:
      setFocused in interface ParentElement
      Mappings:
      Namespace Name Mixin selector
      official a Leza;a(Lezb;)V
      intermediary method_25395 Lnet/minecraft/class_4069;method_25395(Lnet/minecraft/class_364;)V
      named setFocused Lnet/minecraft/client/gui/ParentElement;setFocused(Lnet/minecraft/client/gui/Element;)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
      official a Lezb;a(Lfbf;)Lewr;
      intermediary method_48205 Lnet/minecraft/class_364;method_48205(Lnet/minecraft/class_8023;)Lnet/minecraft/class_8016;
      named getNavigationPath Lnet/minecraft/client/gui/Element;getNavigationPath(Lnet/minecraft/client/gui/navigation/GuiNavigation;)Lnet/minecraft/client/gui/navigation/GuiNavigationPath;
    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int button)
      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
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      button - the mouse button number
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lezb;a(DDI)Z
      intermediary method_25402 Lnet/minecraft/class_364;method_25402(DDI)Z
      named mouseClicked Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
    • mouseReleased

      public boolean mouseReleased(double mouseX, double mouseY, int button)
      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
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      button - the mouse button number
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lezb;b(DDI)Z
      intermediary method_25406 Lnet/minecraft/class_364;method_25406(DDI)Z
      named mouseReleased Lnet/minecraft/client/gui/Element;mouseReleased(DDI)Z
    • mouseDragged

      public boolean mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY)
      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 ClickableWidget
      Parameters:
      mouseX - the current X coordinate of the mouse
      mouseY - the current Y coordinate of the mouse
      button - the mouse button number
      deltaX - the difference of the current X with the previous X coordinate
      deltaY - the difference of the current Y with the previous Y coordinate
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lezb;a(DDIDD)Z
      intermediary method_25403 Lnet/minecraft/class_364;method_25403(DDIDD)Z
      named mouseDragged Lnet/minecraft/client/gui/Element;mouseDragged(DDIDD)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
      official aI_ Lezb;aI_()Z
      intermediary method_25370 Lnet/minecraft/class_364;method_25370()Z
      named isFocused Lnet/minecraft/client/gui/Element;isFocused()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
      official a Lezb;a(Z)V
      intermediary method_25365 Lnet/minecraft/class_364;method_25365(Z)V
      named setFocused Lnet/minecraft/client/gui/Element;setFocused(Z)V