Interface IGuiGraphicsExtension

All Known Implementing Classes:
GuiGraphics

public interface IGuiGraphicsExtension
Extension interface for GuiGraphics.
  • Field Details

  • Method Details

    • self

      private GuiGraphics self()
    • getColorFromFormattingCharacter

      default int getColorFromFormattingCharacter(char c, boolean isLighter)
    • drawScrollingString

      default int drawScrollingString(Font font, Component text, int minX, int maxX, int y, int color)
      Draws a left-aligned string, with a scrolling effect if the string is too long.
      Returns:
      the rendered width of the string, never more than maxX - minX
    • blitInscribed

      default void blitInscribed(ResourceLocation texture, int x, int y, int boundsWidth, int boundsHeight, int rectWidth, int rectHeight)
    • blitInscribed

      default void blitInscribed(ResourceLocation texture, int x, int y, int boundsWidth, int boundsHeight, int rectWidth, int rectHeight, boolean centerX, boolean centerY)