Class ScreenUtils
java.lang.Object
net.neoforged.neoforge.client.gui.ScreenUtils
Deprecated, for removal: This API element is subject to removal in a future version.
This class provides several methods and constants used by the Config GUI classes.
- Author:
- bspkrs
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Deprecated, for removal: This API element is subject to removal in a future version.static int[]
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
blitInscribed
(GuiGraphics guiGraphics, ResourceLocation texture, int x, int y, int boundsWidth, int boundsHeight, int rectWidth, int rectHeight) Deprecated, for removal: This API element is subject to removal in a future version.static void
blitInscribed
(GuiGraphics guiGraphics, ResourceLocation texture, int x, int y, int boundsWidth, int boundsHeight, int rectWidth, int rectHeight, boolean centerX, boolean centerY) Deprecated, for removal: This API element is subject to removal in a future version.static void
blitWithBorder
(GuiGraphics guiGraphics, int x, int y, int u, int v, int width, int height, int textureWidth, int textureHeight, int borderSize, float zLevel) Deprecated, for removal: This API element is subject to removal in a future version.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.static void
blitWithBorder
(GuiGraphics guiGraphics, int x, int y, int u, int v, int width, int height, int textureWidth, int textureHeight, int topBorder, int bottomBorder, int leftBorder, int rightBorder, float zLevel) Deprecated, for removal: This API element is subject to removal in a future version.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.static void
blitWithBorder
(GuiGraphics guiGraphics, ResourceLocation res, int x, int y, int u, int v, int width, int height, int textureWidth, int textureHeight, int borderSize, float zLevel) Deprecated, for removal: This API element is subject to removal in a future version.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.static void
blitWithBorder
(GuiGraphics guiGraphics, ResourceLocation res, int x, int y, int u, int v, int width, int height, int textureWidth, int textureHeight, int topBorder, int bottomBorder, int leftBorder, int rightBorder, float zLevel) Deprecated, for removal: This API element is subject to removal in a future version.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.static void
drawGradientRect
(org.joml.Matrix4f mat, int zLevel, int left, int top, int right, int bottom, int startColor, int endColor) Deprecated, for removal: This API element is subject to removal in a future version.static void
drawTexturedModalRect
(GuiGraphics guiGraphics, int x, int y, int u, int v, int width, int height, float zLevel) Deprecated, for removal: This API element is subject to removal in a future version.static int
getColorFromFormattingCharacter
(char c, boolean isLighter) Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
DEFAULT_BACKGROUND_COLOR
public static final int DEFAULT_BACKGROUND_COLORDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
DEFAULT_BORDER_COLOR_START
public static final int DEFAULT_BORDER_COLOR_STARTDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
DEFAULT_BORDER_COLOR_END
public static final int DEFAULT_BORDER_COLOR_ENDDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
UNDO_CHAR
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
RESET_CHAR
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
VALID
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
INVALID
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
TEXT_COLOR_CODES
public static int[] TEXT_COLOR_CODESDeprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
ScreenUtils
public ScreenUtils()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getColorFromFormattingCharacter
public static int getColorFromFormattingCharacter(char c, boolean isLighter) Deprecated, for removal: This API element is subject to removal in a future version. -
blitWithBorder
public static void blitWithBorder(GuiGraphics guiGraphics, int x, int y, int u, int v, int width, int height, int textureWidth, int textureHeight, int borderSize, float zLevel) Deprecated, for removal: This API element is subject to removal in a future version.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. It is assumed that the desired texture ResourceLocation object has been bound using Minecraft.getMinecraft().getTextureManager().bindTexture(resourceLocation).- Parameters:
guiGraphics
- the gui graphicsx
- 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 borderszLevel
- the zLevel to draw at
-
blitWithBorder
public static void blitWithBorder(GuiGraphics guiGraphics, ResourceLocation res, int x, int y, int u, int v, int width, int height, int textureWidth, int textureHeight, int borderSize, float zLevel) Deprecated, for removal: This API element is subject to removal in a future version.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. The provided ResourceLocation object will be bound using Minecraft.getMinecraft().getTextureManager().bindTexture(resourceLocation).- Parameters:
guiGraphics
- the gui graphicsres
- 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 borderszLevel
- the zLevel to draw at
-
blitWithBorder
public static void blitWithBorder(GuiGraphics guiGraphics, ResourceLocation res, int x, int y, int u, int v, int width, int height, int textureWidth, int textureHeight, int topBorder, int bottomBorder, int leftBorder, int rightBorder, float zLevel) Deprecated, for removal: This API element is subject to removal in a future version.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. The provided ResourceLocation object will be bound using Minecraft.getMinecraft().getTextureManager().bindTexture(resourceLocation).- Parameters:
guiGraphics
- the gui graphicsres
- 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 borderzLevel
- the zLevel to draw at
-
blitWithBorder
public static void blitWithBorder(GuiGraphics guiGraphics, int x, int y, int u, int v, int width, int height, int textureWidth, int textureHeight, int topBorder, int bottomBorder, int leftBorder, int rightBorder, float zLevel) Deprecated, for removal: This API element is subject to removal in a future version.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. It is assumed that the desired texture ResourceLocation object has been bound using Minecraft.getMinecraft().getTextureManager().bindTexture(resourceLocation).- Parameters:
guiGraphics
- the gui graphicsx
- 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 borderzLevel
- the zLevel to draw at
-
drawTexturedModalRect
@Deprecated(forRemoval=true) public static void drawTexturedModalRect(GuiGraphics guiGraphics, int x, int y, int u, int v, int width, int height, float zLevel) Deprecated, for removal: This API element is subject to removal in a future version. -
drawGradientRect
@Deprecated(forRemoval=true) public static void drawGradientRect(org.joml.Matrix4f mat, int zLevel, int left, int top, int right, int bottom, int startColor, int endColor) Deprecated, for removal: This API element is subject to removal in a future version. -
blitInscribed
public static void blitInscribed(GuiGraphics guiGraphics, ResourceLocation texture, int x, int y, int boundsWidth, int boundsHeight, int rectWidth, int rectHeight) Deprecated, for removal: This API element is subject to removal in a future version. -
blitInscribed
public static void blitInscribed(GuiGraphics guiGraphics, ResourceLocation texture, int x, int y, int boundsWidth, int boundsHeight, int rectWidth, int rectHeight, boolean centerX, boolean centerY) Deprecated, for removal: This API element is subject to removal in a future version.
-
IGuiGraphicsExtension
instead