Interface IForgeGuiGraphics
- All Known Implementing Classes:
- GuiGraphics
public interface IForgeGuiGraphics
Extension interface for 
GuiGraphics.- 
Field SummaryFields
- 
Method SummaryModifier 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 voidblitWithBorder(ResourceLocation texture, int x, int y, int u, int v, int width, int height, int textureWidth, int textureHeight, int borderSize) Draws a textured box of any size (smallest size is borderSize * 2 square) based on a fixed size textured box with continuous borders and filler.default voidblitWithBorder(ResourceLocation texture, int x, int y, int u, int v, int width, int height, int textureWidth, int textureHeight, int topBorder, int bottomBorder, int leftBorder, int rightBorder) Draws a textured box of any size (smallest size is borderSize * 2 square) based on a fixed size textured box with continuous borders and filler.default intgetColorFromFormattingCharacter(char c, boolean isLighter) private GuiGraphicsself()
- 
Field Details- 
DEFAULT_BACKGROUND_COLORstatic final int DEFAULT_BACKGROUND_COLOR- See Also:
 
- 
DEFAULT_BORDER_COLOR_STARTstatic final int DEFAULT_BORDER_COLOR_START- See Also:
 
- 
DEFAULT_BORDER_COLOR_ENDstatic final int DEFAULT_BORDER_COLOR_END- See Also:
 
- 
UNDO_CHAR- See Also:
 
- 
RESET_CHAR- See Also:
 
- 
VALID- See Also:
 
- 
INVALID- See Also:
 
- 
TEXT_COLOR_CODESstatic final int[] TEXT_COLOR_CODES
 
- 
- 
Method Details- 
self
- 
getColorFromFormattingCharacterdefault int getColorFromFormattingCharacter(char c, boolean isLighter) 
- 
blitWithBorderdefault void blitWithBorder(ResourceLocation texture, int x, int y, int u, int v, int width, int height, int textureWidth, int textureHeight, int borderSize) Draws a textured box of any size (smallest size is borderSize * 2 square) based on a fixed size textured box with continuous borders and filler.- Parameters:
- texture- the ResourceLocation object that contains the desired image
- x- x-axis offset
- y- y-axis offset
- u- bound resource location image x offset
- v- bound resource location image y offset
- width- the desired box width
- height- the desired box height
- textureWidth- the width of the box texture in the resource location image
- textureHeight- the height of the box texture in the resource location image
- borderSize- the size of the box's borders
 
- 
blitWithBorderdefault void blitWithBorder(ResourceLocation texture, int x, int y, int u, int v, int width, int height, int textureWidth, int textureHeight, int topBorder, int bottomBorder, int leftBorder, int rightBorder) Draws a textured box of any size (smallest size is borderSize * 2 square) based on a fixed size textured box with continuous borders and filler.- Parameters:
- texture- the ResourceLocation object that contains the desired image
- x- x-axis offset
- y- y-axis offset
- u- bound resource location image x offset
- v- bound resource location image y offset
- width- the desired box width
- height- the desired box height
- textureWidth- the width of the box texture in the resource location image
- textureHeight- the height of the box texture in the resource location image
- topBorder- the size of the box's top border
- bottomBorder- the size of the box's bottom border
- leftBorder- the size of the box's left border
- rightBorder- the size of the box's right border
 
- 
blitInscribeddefault void blitInscribed(ResourceLocation texture, int x, int y, int boundsWidth, int boundsHeight, int rectWidth, int rectHeight) 
- 
blitInscribeddefault void blitInscribed(ResourceLocation texture, int x, int y, int boundsWidth, int boundsHeight, int rectWidth, int rectHeight, boolean centerX, boolean centerY) 
 
-