Class BannerRenderer

java.lang.Object
net.mcexpanded.fancytabsections.creativetab.BannerRenderer

public class BannerRenderer extends Object
  • Field Details

    • CURRENT_ROW

      public static int CURRENT_ROW
    • CURRENT_TAB

      public static net.minecraft.resources.Identifier CURRENT_TAB
    • ROW_HEIGHT

      public static final int ROW_HEIGHT
      See Also:
    • GRID_COLS

      public static final int GRID_COLS
      See Also:
    • GRID_X_OFFSET

      public static final int GRID_X_OFFSET
      See Also:
    • GRID_Y_OFFSET

      public static final int GRID_Y_OFFSET
      See Also:
    • VISIBLE_ROWS

      public static final int VISIBLE_ROWS
      See Also:
    • EXPANDED_BUTTON

      public static final net.minecraft.resources.Identifier EXPANDED_BUTTON
    • EXPANDED_BUTTON_HIGHLIGHT

      public static final net.minecraft.resources.Identifier EXPANDED_BUTTON_HIGHLIGHT
    • COLLAPSED_BUTTON

      public static final net.minecraft.resources.Identifier COLLAPSED_BUTTON
    • COLLAPSED_BUTTON_HIGHLIGHT

      public static final net.minecraft.resources.Identifier COLLAPSED_BUTTON_HIGHLIGHT
  • Constructor Details

    • BannerRenderer

      public BannerRenderer()
  • Method Details

    • render

      public static void render(net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen screen, net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, List<Section<?>> sections, int mouseX, int mouseY)
    • isInToggle

      @Internal public static boolean isInToggle(net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen screen, Section section, double mouseX, double mouseY)
      Returns:
      true if the given screen-space coordinate falls within the (visible) toggle control of a collapsible Section.
    • isInBanner

      @Internal public static boolean isInBanner(net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen screen, double mouseX, double mouseY)
      Returns:
      true if the given screen-space coordinate falls within a banner
      Since:
      5.0