Class PackListWidget.ResourcePackEntry

All Implemented Interfaces:
Element
Enclosing class:
PackListWidget

@Environment(CLIENT)
public static class PackListWidget.ResourcePackEntry
extends AlwaysSelectedEntryListWidget.Entry<PackListWidget.ResourcePackEntry>
  • Field Details

  • Constructor Details

  • Method Details

    • method_31229

      private static OrderedText method_31229​(MinecraftClient minecraftClient, Text text)
    • method_31230

      private static class_5489 method_31230​(MinecraftClient minecraftClient, Text text)
    • render

      public void render​(MatrixStack matrices, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)
      Renders an entry in a list.
      Specified by:
      render in class EntryListWidget.Entry<PackListWidget.ResourcePackEntry>
      Parameters:
      matrices - the matrix stack used for rendering
      index - the index of the entry
      y - the Y coordinate of the entry
      x - the X coordinate of the entry
      entryWidth - the width of the entry
      entryHeight - the height of the entry
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      hovered - whether the mouse is hovering over the entry
    • isSelectable

      private boolean isSelectable()
    • 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.
      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:
      Mouse.onMouseButton(long, int, int, int), GLFW.GLFW_MOUSE_BUTTON_1