Class Icons

java.lang.Object
me.hackware.api.gui.Icons

public final class Icons extends Object
White, tintable ClickGUI icon sprites (assets/hackware/textures/gui/icons/*.png).

The source PNG may be any size and carry any transparent padding. Rather than let the GPU minify a big source down to a few pixels (which point-samples / drops pixels and leaves strokes uneven), each icon is resampled on the CPU with area-averaging to its exact on-screen pixel size, cached, and blitted 1:1 — so edges stay clean and stroke weight stays even at any GUI scale. The RGB is forced white and coverage kept in alpha, so the blit tint recolours it.

  • Field Details

    • ADD

      public static final Icons.Icon ADD
    • ARROW_DROP_UP

      public static final Icons.Icon ARROW_DROP_UP
    • CHAT

      public static final Icons.Icon CHAT
    • CHECK_CIRCLE

      public static final Icons.Icon CHECK_CIRCLE
    • CHECK_SMALL

      public static final Icons.Icon CHECK_SMALL
    • CHEVRON_FORWARD

      public static final Icons.Icon CHEVRON_FORWARD
    • CLOSE_SMALL

      public static final Icons.Icon CLOSE_SMALL
    • DATA_OBJECT

      public static final Icons.Icon DATA_OBJECT
    • DEPLOYED_CODE

      public static final Icons.Icon DEPLOYED_CODE
    • DOWNLOAD

      public static final Icons.Icon DOWNLOAD
    • ERROR

      public static final Icons.Icon ERROR
    • FOLDER

      public static final Icons.Icon FOLDER
    • FUNCTION

      public static final Icons.Icon FUNCTION
    • INFO

      public static final Icons.Icon INFO
    • KEYBOARD

      public static final Icons.Icon KEYBOARD
    • KEYBOARD_COMMAND_KEY

      public static final Icons.Icon KEYBOARD_COMMAND_KEY
    • PACKAGE_2

      public static final Icons.Icon PACKAGE_2
    • REMOVE

      public static final Icons.Icon REMOVE
    • SETTINGS

      public static final Icons.Icon SETTINGS
    • SKULL

      public static final Icons.Icon SKULL
    • TERMINAL_2

      public static final Icons.Icon TERMINAL_2
    • WARNING

      public static final Icons.Icon WARNING
  • Method Details

    • drawCentered

      public static void drawCentered(net.minecraft.client.gui.GuiGraphics g, Icons.Icon icon, float cx, float cy, int size, int argb)
      Draw icon centred on (cx,cy), scaled so its fit dimension is size, tinted.
    • draw

      public static void draw(net.minecraft.client.gui.GuiGraphics g, Icons.Icon icon, int x, int y, int size, int argb)
      Draw icon centred in a size×size box at (x,y), tinted.
    • chevron

      public static void chevron(net.minecraft.client.gui.GuiGraphics g, float cx, float cy, int size, int argb, boolean expanded)
      Expand/collapse chevron centred on (cx,cy). The sprite points right (collapsed); when expanded it is rotated a quarter-turn to point down.