类 ScreenUtils
java.lang.Object
net.minecraftforge.client.gui.ScreenUtils
已过时, 待删除: 此 API 元素将从以后的版本中删除。
This class provides several methods and constants used by the Config GUI classes.
-
字段概要
字段修饰符和类型字段说明static final int
已过时, 待删除: 此 API 元素将从以后的版本中删除。static final int
已过时, 待删除: 此 API 元素将从以后的版本中删除。static final int
已过时, 待删除: 此 API 元素将从以后的版本中删除。static final String
已过时, 待删除: 此 API 元素将从以后的版本中删除。static final String
已过时, 待删除: 此 API 元素将从以后的版本中删除。static int[]
已过时, 待删除: 此 API 元素将从以后的版本中删除。static final String
已过时, 待删除: 此 API 元素将从以后的版本中删除。static final String
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static void
blitInscribed
(GuiGraphics guiGraphics, ResourceLocation texture, int x, int y, int boundsWidth, int boundsHeight, int rectWidth, int rectHeight) 已过时, 待删除: 此 API 元素将从以后的版本中删除。static void
blitInscribed
(GuiGraphics guiGraphics, ResourceLocation texture, int x, int y, int boundsWidth, int boundsHeight, int rectWidth, int rectHeight, boolean centerX, boolean centerY) 已过时, 待删除: 此 API 元素将从以后的版本中删除。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) 已过时, 待删除: 此 API 元素将从以后的版本中删除。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) 已过时, 待删除: 此 API 元素将从以后的版本中删除。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) 已过时, 待删除: 此 API 元素将从以后的版本中删除。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) 已过时, 待删除: 此 API 元素将从以后的版本中删除。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) 已过时, 待删除: 此 API 元素将从以后的版本中删除。static void
drawTexturedModalRect
(GuiGraphics guiGraphics, int x, int y, int u, int v, int width, int height, float zLevel) 已过时, 待删除: 此 API 元素将从以后的版本中删除。static int
getColorFromFormattingCharacter
(char c, boolean isLighter) 已过时, 待删除: 此 API 元素将从以后的版本中删除。
-
字段详细资料
-
DEFAULT_BACKGROUND_COLOR
public static final int DEFAULT_BACKGROUND_COLOR已过时, 待删除: 此 API 元素将从以后的版本中删除。- 另请参阅:
-
DEFAULT_BORDER_COLOR_START
public static final int DEFAULT_BORDER_COLOR_START已过时, 待删除: 此 API 元素将从以后的版本中删除。- 另请参阅:
-
DEFAULT_BORDER_COLOR_END
public static final int DEFAULT_BORDER_COLOR_END已过时, 待删除: 此 API 元素将从以后的版本中删除。- 另请参阅:
-
UNDO_CHAR
已过时, 待删除: 此 API 元素将从以后的版本中删除。- 另请参阅:
-
RESET_CHAR
已过时, 待删除: 此 API 元素将从以后的版本中删除。- 另请参阅:
-
VALID
已过时, 待删除: 此 API 元素将从以后的版本中删除。- 另请参阅:
-
INVALID
已过时, 待删除: 此 API 元素将从以后的版本中删除。- 另请参阅:
-
TEXT_COLOR_CODES
public static int[] TEXT_COLOR_CODES已过时, 待删除: 此 API 元素将从以后的版本中删除。
-
-
构造器详细资料
-
ScreenUtils
public ScreenUtils()已过时, 待删除: 此 API 元素将从以后的版本中删除。
-
-
方法详细资料
-
getColorFromFormattingCharacter
public static int getColorFromFormattingCharacter(char c, boolean isLighter) 已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
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) 已过时, 待删除: 此 API 元素将从以后的版本中删除。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).- 参数:
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) 已过时, 待删除: 此 API 元素将从以后的版本中删除。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).- 参数:
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) 已过时, 待删除: 此 API 元素将从以后的版本中删除。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).- 参数:
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) 已过时, 待删除: 此 API 元素将从以后的版本中删除。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).- 参数:
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) 已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
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) 已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
blitInscribed
public static void blitInscribed(GuiGraphics guiGraphics, ResourceLocation texture, int x, int y, int boundsWidth, int boundsHeight, int rectWidth, int rectHeight) 已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
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) 已过时, 待删除: 此 API 元素将从以后的版本中删除。
-
IForgeGuiGraphics
instead