Interface IForgeGuiGraphics
- All Known Implementing Classes:
GuiGraphics
public interface IForgeGuiGraphics
Extension interface for
GuiGraphics
.-
Field Summary
-
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 void
blitNineSlicedSized
(ResourceLocation texture, int x, int y, int width, int height, int sliceSize, int uWidth, int vHeight, int uOffset, int vOffset, int textureWidth, int textureHeight) Version ofGuiGraphics.blitNineSliced(ResourceLocation, int, int, int, int, int, int, int, int, int)
that supports specifying the texture's size.default void
blitNineSlicedSized
(ResourceLocation texture, int x, int y, int width, int height, int sliceWidth, int sliceHeight, int uWidth, int vHeight, int uOffset, int vOffset, int textureWidth, int textureHeight) Version ofGuiGraphics.blitNineSliced(ResourceLocation, int, int, int, int, int, int, int, int, int, int)
that supports specifying the texture's size.default void
blitNineSlicedSized
(ResourceLocation texture, int x, int y, int width, int height, int cornerWidth, int cornerHeight, int edgeWidth, int edgeHeight, int uWidth, int vHeight, int uOffset, int vOffset, int textureWidth, int textureHeight) Version ofGuiGraphics.blitNineSliced(ResourceLocation, int, int, int, int, int, int, int, int, int, int, int, int)
that supports specifying the texture's size.default 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.default 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.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) -
blitWithBorder
default 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 imagex
- x-axis offsety
- y-axis offsetu
- bound resource location image x offsetv
- bound resource location image y offsetwidth
- the desired box widthheight
- the desired box heighttextureWidth
- the width of the box texture in the resource location imagetextureHeight
- the height of the box texture in the resource location imageborderSize
- the size of the box's borders
-
blitWithBorder
default 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 imagex
- x-axis offsety
- y-axis offsetu
- bound resource location image x offsetv
- bound resource location image y offsetwidth
- the desired box widthheight
- the desired box heighttextureWidth
- the width of the box texture in the resource location imagetextureHeight
- the height of the box texture in the resource location imagetopBorder
- the size of the box's top borderbottomBorder
- the size of the box's bottom borderleftBorder
- the size of the box's left borderrightBorder
- the size of the box's right border
-
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) -
blitNineSlicedSized
default void blitNineSlicedSized(ResourceLocation texture, int x, int y, int width, int height, int sliceSize, int uWidth, int vHeight, int uOffset, int vOffset, int textureWidth, int textureHeight) Version ofGuiGraphics.blitNineSliced(ResourceLocation, int, int, int, int, int, int, int, int, int)
that supports specifying the texture's size. -
blitNineSlicedSized
default void blitNineSlicedSized(ResourceLocation texture, int x, int y, int width, int height, int sliceWidth, int sliceHeight, int uWidth, int vHeight, int uOffset, int vOffset, int textureWidth, int textureHeight) Version ofGuiGraphics.blitNineSliced(ResourceLocation, int, int, int, int, int, int, int, int, int, int)
that supports specifying the texture's size. -
blitNineSlicedSized
default void blitNineSlicedSized(ResourceLocation texture, int x, int y, int width, int height, int cornerWidth, int cornerHeight, int edgeWidth, int edgeHeight, int uWidth, int vHeight, int uOffset, int vOffset, int textureWidth, int textureHeight) Version ofGuiGraphics.blitNineSliced(ResourceLocation, int, int, int, int, int, int, int, int, int, int, int, int)
that supports specifying the texture's size.
-