All Known Implementing Classes:
ItemIcon, TextureIcon

public interface Icon
A square icon for a widget such as a button.
Since:
2.2.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    paint(DrawContext context, int x, int y, int size)
    Paints this icon.
  • Method Details

    • paint

      @Environment(CLIENT) void paint(DrawContext context, int x, int y, int size)
      Paints this icon.
      Parameters:
      context - the draw context
      x - the X coordinate
      y - the Y coordinate
      size - the size of this icon in pixels (size N means a N*N square)