Class GroupNameWidget

All Implemented Interfaces:
Element, ParentElement
Direct Known Subclasses:
SubGroupNameWidget

public class GroupNameWidget extends ListWidget.Entry
  • Field Details

    • CLIENT

      protected static final Minecraft CLIENT
    • id

      public final String id
    • text

      public final Text text
    • children

      public final List<ConfigEntryWidget> children
    • collapsed

      public boolean collapsed
  • Constructor Details

    • GroupNameWidget

      public GroupNameWidget(String id, Text text)
  • Method Details

    • render

      public void render(DrawContext raw, int index, int y, int x, int width, int height, int mouseX, int mouseY, boolean hovered, float delta)
      Specified by:
      render in class ListWidget.Entry
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in class ListWidget.Entry
    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int button)
    • children

      public List<? extends Element> children()
      Description copied from interface: ParentElement
      Gets a list of all child GUI elements.