类 IUIGuiUtils
java.lang.Object
org.hiedacamellia.immersiveui.client.graphic.util.IUIGuiUtils
GuiGraphics相关的绘制工具类,提供基础形状、纹理、文本等渲染方法。
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static void_blit(net.minecraft.client.gui.GuiGraphics guiGraphics, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1) static void_blit(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation location, float x1, float y1, float x2, float y2, float uWidth, float vHeight, float uOffset, float vOffset, float textureWidth, float textureHeight) static void_blitInUv(net.minecraft.client.gui.GuiGraphics guiGraphics, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1) static void_borderRoundRect(net.minecraft.client.gui.GuiGraphics guiGraphics, float x1, float y1, float x2, float y2, float radius, int color, float borderThickness, int borderColor) static voidblit(net.minecraft.client.gui.GuiGraphics guiGraphics, int textureId, float x1, float y1, float x2, float y2) static voidblit(net.minecraft.client.gui.GuiGraphics guiGraphics, int textureId, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1) static voidblit(net.minecraft.client.gui.GuiGraphics guiGraphics, int textureId, int x, int y, int width, int height) static voidblit(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation location, float x1, float y1, float x2, float y2) static voidblit(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation location, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1) static voidblit(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation location, float x, float y, float width, float height, float uOffset, float vOffset, float uWidth, float vHeight, float textureWidth, float textureHeight) 绘制纹理贴图。static voidblit(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation location, int x, int y, int width, int height) static voidblitInUv(net.minecraft.client.gui.GuiGraphics poseStack, int textureId, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1) static voidblitInUv(net.minecraft.client.gui.GuiGraphics poseStack, net.minecraft.resources.ResourceLocation location, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1) 绘制带有UV坐标的纹理贴图。static voidblitRoundCentered(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation resourceLocation, float x, float y, int radius, float smooth) 居中绘制圆形纹理。static voidblur(net.minecraft.client.gui.GuiGraphics guiGraphics, int textureId, float x1, float y1, float x2, float y2, float radius) 绘制模糊效果。static voidblur(net.minecraft.client.gui.GuiGraphics guiGraphics, int textureId, float x1, float y1, float x2, float y2, float radius, float u0, float v0, float u1, float v1) static voidblur(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation atlasLocation, float x1, float y1, float x2, float y2, float radius) static voidblur(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation atlasLocation, float x1, float y1, float x2, float y2, float radius, float u0, float v0, float u1, float v1) static voidborderRoundRect(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, float radius, int color, float borderThickness, int borderColor) static voidborderRoundRectCentered(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, float radius, int color, float borderThickness, int borderColor) 绘制带边框的圆角矩形(可指定边框厚度和颜色)。static voidborderRoundRectCentered(net.minecraft.client.gui.GuiGraphics guiGraphics, float width, float height, float radius, int color, float borderThickness, int borderColor) static voiddrawCenteredString(net.minecraft.client.gui.GuiGraphics guiGraphics, String text, float x, float y, int color, boolean dropShadow) 居中绘制字符串。static voiddrawCenteredString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, String text, float x, float y, int color, boolean dropShadow) static voiddrawCenteredString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component component, float x, float y, int color, boolean dropShadow) static voiddrawCenteredString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, net.minecraft.util.FormattedCharSequence charSequence, float x, float y, int color, boolean dropShadow) static voiddrawCenteredString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.network.chat.Component component, float x, float y, int color, boolean dropShadow) static voiddrawCenteredString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.util.FormattedCharSequence charSequence, float x, float y, int color, boolean dropShadow) static voiddrawRing(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float innerRadius, float outerRadius, float startAngle, float endAngle, int color) 绘制圆环。static voiddrawRing(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float innerRadius, float outerRadius, float startAngle, float endAngle, int color, float smooth) static voiddrawRing(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float innerRadius, float outerRadius, float startAngle, float endAngle, int innerColor, int outerColor) static voiddrawRing(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float innerRadius, float outerRadius, float startAngle, float endAngle, int innerColor, int outerColor, float smooth) static intdrawString(net.minecraft.client.gui.GuiGraphics guiGraphics, String text, float x, float y, int color, boolean dropShadow) static intdrawString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, String text, float x, float y, int color, boolean dropShadow) static intdrawString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component component, float x, float y, int color, boolean dropShadow) static intdrawString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, net.minecraft.util.FormattedCharSequence charSequence, float x, float y, int color, boolean dropShadow) static intdrawString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.network.chat.Component component, float x, float y, int color, boolean dropShadow) static intdrawString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.util.FormattedCharSequence charSequence, float x, float y, int color, boolean dropShadow) static voidfill(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, int color) 绘制矩形。static voidfillBorderRect(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, float radiusX, float radiusY, int color) 绘制带边框的圆角矩形(可分别指定X/Y半径)。static voidfillBorderRect(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, float radius, int color) 绘制带边框的圆角矩形。static voidfillCentered(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, int color) 绘制以(x, y)为中心的矩形。static voidfillRoundRect(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, float radius, int color) static voidfillRoundRect(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, int radius, int color) 绘制圆角矩形。static voidfillRoundRectCentered(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, float radius, int color) 绘制以(x, y)为中心的圆角矩形。static voidfillRoundRectCentered(net.minecraft.client.gui.GuiGraphics guiGraphics, float width, float height, float radius, int color) static voidfillSquare(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float sideLength, int color) 绘制正方形。static voidfillSquareCentered(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float sideLength, int color) 绘制以(x, y)为中心的正方形。static voidguiFill(net.minecraft.client.gui.GuiGraphics guiGraphics, float x1, float y1, float x2, float y2, int color) Gui专用的矩形填充。static voidhLine(net.minecraft.client.gui.GuiGraphics guiGraphics, float minX, float maxX, float minY, float maxY, int color) 绘制水平线。static voidhLine(net.minecraft.client.gui.GuiGraphics guiGraphics, float minX, float maxX, float y, int color) 绘制水平线(单Y坐标)。static voidrenderSlotBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y) 渲染物品槽背景。static voidrenderSlotBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int bg_color, int border_color) 渲染物品槽背景(可自定义颜色)。static voidvLine(net.minecraft.client.gui.GuiGraphics guiGraphics, float minX, float maxX, float minY, float maxY, int color) 绘制垂直线。static voidvLine(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float minY, float maxY, int color) 绘制垂直线(单X坐标)。
-
构造器详细资料
-
IUIGuiUtils
public IUIGuiUtils()
-
-
方法详细资料
-
fillSquareCentered
public static void fillSquareCentered(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float sideLength, int color) 绘制以(x, y)为中心的正方形。 -
fillSquare
public static void fillSquare(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float sideLength, int color) 绘制正方形。 -
fillCentered
public static void fillCentered(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, int color) 绘制以(x, y)为中心的矩形。 -
fill
public static void fill(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, int color) 绘制矩形。 -
fillRoundRectCentered
public static void fillRoundRectCentered(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, float radius, int color) 绘制以(x, y)为中心的圆角矩形。 -
fillRoundRectCentered
public static void fillRoundRectCentered(net.minecraft.client.gui.GuiGraphics guiGraphics, float width, float height, float radius, int color) -
fillRoundRect
public static void fillRoundRect(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, int radius, int color) 绘制圆角矩形。 -
fillRoundRect
public static void fillRoundRect(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, float radius, int color) -
fillBorderRect
public static void fillBorderRect(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, float radius, int color) 绘制带边框的圆角矩形。 -
fillBorderRect
public static void fillBorderRect(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, float radiusX, float radiusY, int color) 绘制带边框的圆角矩形(可分别指定X/Y半径)。 -
borderRoundRectCentered
public static void borderRoundRectCentered(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, float radius, int color, float borderThickness, int borderColor) 绘制带边框的圆角矩形(可指定边框厚度和颜色)。 -
borderRoundRectCentered
public static void borderRoundRectCentered(net.minecraft.client.gui.GuiGraphics guiGraphics, float width, float height, float radius, int color, float borderThickness, int borderColor) -
borderRoundRect
public static void borderRoundRect(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, float radius, int color, float borderThickness, int borderColor) -
_borderRoundRect
public static void _borderRoundRect(net.minecraft.client.gui.GuiGraphics guiGraphics, float x1, float y1, float x2, float y2, float radius, int color, float borderThickness, int borderColor) -
blit
public static void blit(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation location, float x, float y, float width, float height, float uOffset, float vOffset, float uWidth, float vHeight, float textureWidth, float textureHeight) 绘制纹理贴图。 -
blit
public static void blit(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation location, int x, int y, int width, int height) -
blit
public static void blit(net.minecraft.client.gui.GuiGraphics guiGraphics, int textureId, int x, int y, int width, int height) -
blit
public static void blit(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation location, float x1, float y1, float x2, float y2) -
blit
public static void blit(net.minecraft.client.gui.GuiGraphics guiGraphics, int textureId, float x1, float y1, float x2, float y2) -
_blit
public static void _blit(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation location, float x1, float y1, float x2, float y2, float uWidth, float vHeight, float uOffset, float vOffset, float textureWidth, float textureHeight) -
blit
public static void blit(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation location, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1) -
blit
public static void blit(net.minecraft.client.gui.GuiGraphics guiGraphics, int textureId, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1) -
_blit
public static void _blit(net.minecraft.client.gui.GuiGraphics guiGraphics, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1) -
blitInUv
public static void blitInUv(net.minecraft.client.gui.GuiGraphics poseStack, net.minecraft.resources.ResourceLocation location, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1) 绘制带有UV坐标的纹理贴图。 -
blitInUv
public static void blitInUv(net.minecraft.client.gui.GuiGraphics poseStack, int textureId, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1) -
_blitInUv
public static void _blitInUv(net.minecraft.client.gui.GuiGraphics guiGraphics, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1) -
blur
public static void blur(net.minecraft.client.gui.GuiGraphics guiGraphics, int textureId, float x1, float y1, float x2, float y2, float radius) 绘制模糊效果。 -
blur
public static void blur(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation atlasLocation, float x1, float y1, float x2, float y2, float radius) -
blur
public static void blur(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation atlasLocation, float x1, float y1, float x2, float y2, float radius, float u0, float v0, float u1, float v1) -
blur
public static void blur(net.minecraft.client.gui.GuiGraphics guiGraphics, int textureId, float x1, float y1, float x2, float y2, float radius, float u0, float v0, float u1, float v1) -
drawCenteredString
public static void drawCenteredString(net.minecraft.client.gui.GuiGraphics guiGraphics, String text, float x, float y, int color, boolean dropShadow) 居中绘制字符串。 -
drawCenteredString
public static void drawCenteredString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, String text, float x, float y, int color, boolean dropShadow) -
drawCenteredString
public static void drawCenteredString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.network.chat.Component component, float x, float y, int color, boolean dropShadow) -
drawCenteredString
public static void drawCenteredString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component component, float x, float y, int color, boolean dropShadow) -
drawCenteredString
public static void drawCenteredString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.util.FormattedCharSequence charSequence, float x, float y, int color, boolean dropShadow) -
drawCenteredString
public static void drawCenteredString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, net.minecraft.util.FormattedCharSequence charSequence, float x, float y, int color, boolean dropShadow) -
drawString
public static int drawString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.util.FormattedCharSequence charSequence, float x, float y, int color, boolean dropShadow) -
drawString
public static int drawString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, net.minecraft.util.FormattedCharSequence charSequence, float x, float y, int color, boolean dropShadow) -
drawString
public static int drawString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.network.chat.Component component, float x, float y, int color, boolean dropShadow) -
drawString
public static int drawString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component component, float x, float y, int color, boolean dropShadow) -
drawString
public static int drawString(net.minecraft.client.gui.GuiGraphics guiGraphics, @Nullable String text, float x, float y, int color, boolean dropShadow) -
drawString
public static int drawString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, @Nullable String text, float x, float y, int color, boolean dropShadow) -
drawRing
public static void drawRing(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float innerRadius, float outerRadius, float startAngle, float endAngle, int color) 绘制圆环。 -
drawRing
public static void drawRing(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float innerRadius, float outerRadius, float startAngle, float endAngle, int color, float smooth) -
drawRing
public static void drawRing(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float innerRadius, float outerRadius, float startAngle, float endAngle, int innerColor, int outerColor) -
drawRing
public static void drawRing(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float innerRadius, float outerRadius, float startAngle, float endAngle, int innerColor, int outerColor, float smooth) -
blitRoundCentered
public static void blitRoundCentered(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation resourceLocation, float x, float y, int radius, float smooth) 居中绘制圆形纹理。 -
hLine
public static void hLine(net.minecraft.client.gui.GuiGraphics guiGraphics, float minX, float maxX, float minY, float maxY, int color) 绘制水平线。 -
vLine
public static void vLine(net.minecraft.client.gui.GuiGraphics guiGraphics, float minX, float maxX, float minY, float maxY, int color) 绘制垂直线。 -
hLine
public static void hLine(net.minecraft.client.gui.GuiGraphics guiGraphics, float minX, float maxX, float y, int color) 绘制水平线(单Y坐标)。 -
vLine
public static void vLine(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float minY, float maxY, int color) 绘制垂直线(单X坐标)。 -
guiFill
public static void guiFill(net.minecraft.client.gui.GuiGraphics guiGraphics, float x1, float y1, float x2, float y2, int color) Gui专用的矩形填充。 -
renderSlotBackground
public static void renderSlotBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y) 渲染物品槽背景。 -
renderSlotBackground
public static void renderSlotBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int bg_color, int border_color) 渲染物品槽背景(可自定义颜色)。
-