Interface IGuiGraphicsExtension
- All Known Implementing Classes:
GuiGraphics
public interface IGuiGraphicsExtension
Extension interface for
GuiGraphics
.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault void
blitInscribed
(ResourceLocation texture, int x, int y, int boundsWidth, int boundsHeight, int rectWidth, int rectHeight) default void
blitInscribed
(ResourceLocation texture, int x, int y, int boundsWidth, int boundsHeight, int rectWidth, int rectHeight, boolean centerX, boolean centerY) 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.default int
getColorFromFormattingCharacter
(char c, boolean isLighter) private GuiGraphics
self()
-
Field Details
-
DEFAULT_BACKGROUND_COLOR
static final int DEFAULT_BACKGROUND_COLOR- See Also:
-
DEFAULT_BORDER_COLOR_START
static final int DEFAULT_BORDER_COLOR_START- See Also:
-
DEFAULT_BORDER_COLOR_END
static final int DEFAULT_BORDER_COLOR_END- See Also:
-
UNDO_CHAR
- See Also:
-
RESET_CHAR
- See Also:
-
VALID
- See Also:
-
INVALID
- See Also:
-
TEXT_COLOR_CODES
static final int[] TEXT_COLOR_CODES
-
-
Method Details
-
self
-
getColorFromFormattingCharacter
default int getColorFromFormattingCharacter(char c, boolean isLighter) -
drawScrollingString
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)
-