Interface IGuiGraphicsExtension
- All Known Implementing Classes:
GuiGraphics
public interface IGuiGraphicsExtension
Extension interface for
GuiGraphics.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault voidblitInscribed(ResourceLocation texture, int x, int y, int boundsWidth, int boundsHeight, int rectWidth, int rectHeight) default voidblitInscribed(ResourceLocation texture, int x, int y, int boundsWidth, int boundsHeight, int rectWidth, int rectHeight, boolean centerX, boolean centerY) default voiddrawScrollingString(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 intgetColorFromFormattingCharacter(char c, boolean isLighter) private GuiGraphicsself()
-
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. -
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)
-