类 IUIGraphicUtils
java.lang.Object
org.hiedacamellia.immersiveui.client.graphic.util.IUIGraphicUtils
图形绘制相关的工具类,提供基础形状、纹理、文本等渲染方法。
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static void_blit(com.mojang.blaze3d.vertex.PoseStack poseStack, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1) static void_blit(com.mojang.blaze3d.vertex.PoseStack poseStack, 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(com.mojang.blaze3d.vertex.PoseStack poseStack, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1) static void_blur(com.mojang.blaze3d.vertex.PoseStack poseStack, float x1, float y1, float x2, float y2, float radius, float u0, float v0, float u1, float v1) static void_borderRoundRect(com.mojang.blaze3d.vertex.PoseStack poseStack, float x1, float y1, float x2, float y2, float radius, int color, float borderThickness, int borderColor) static voidblit(com.mojang.blaze3d.vertex.PoseStack poseStack, int textureId, float x1, float y1, float x2, float y2) static voidblit(com.mojang.blaze3d.vertex.PoseStack poseStack, int textureId, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1) static voidblit(com.mojang.blaze3d.vertex.PoseStack poseStack, int textureId, int x, int y, int width, int height) static voidblit(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.resources.ResourceLocation location, float x1, float y1, float x2, float y2) static voidblit(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.resources.ResourceLocation location, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1) static voidblit(com.mojang.blaze3d.vertex.PoseStack poseStack, 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(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.resources.ResourceLocation location, int x, int y, int width, int height) static voidblitInUv(com.mojang.blaze3d.vertex.PoseStack poseStack, int textureId, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1) static voidblitInUv(com.mojang.blaze3d.vertex.PoseStack 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(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.resources.ResourceLocation resourceLocation, float x, float y, int radius, float smooth) 居中绘制圆形纹理。static voidblur(com.mojang.blaze3d.vertex.PoseStack poseStack, int textureId, float x1, float y1, float x2, float y2, float radius) 绘制模糊效果。static voidblur(com.mojang.blaze3d.vertex.PoseStack poseStack, int textureId, float x1, float y1, float x2, float y2, float radius, float u0, float v0, float u1, float v1) static voidblur(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.resources.ResourceLocation atlasLocation, float x1, float y1, float x2, float y2, float radius) static voidblur(com.mojang.blaze3d.vertex.PoseStack poseStack, 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(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, float radius, int color, float borderThickness, int borderColor) static voidborderRoundRectCentered(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, float radius, int color, float borderThickness, int borderColor) 绘制带边框的圆角矩形(可指定边框厚度和颜色)。static voidborderRoundRectCentered(com.mojang.blaze3d.vertex.PoseStack poseStack, float width, float height, float radius, int color, float borderThickness, int borderColor) static voiddrawCenteredString(com.mojang.blaze3d.vertex.PoseStack poseStack, String text, float x, float y, int color, boolean dropShadow) 居中绘制字符串。static voiddrawCenteredString(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.gui.Font font, String text, float x, float y, int color, boolean dropShadow) static voiddrawCenteredString(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component component, float x, float y, int color, boolean dropShadow) static voiddrawCenteredString(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.gui.Font font, net.minecraft.util.FormattedCharSequence text, float x, float y, int color, boolean dropShadow) static voiddrawCenteredString(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.network.chat.Component component, float x, float y, int color, boolean dropShadow) static voiddrawCenteredString(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.util.FormattedCharSequence charSequence, float x, float y, int color, boolean dropShadow) static voiddrawRing(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float innerRadius, float outerRadius, float startAngle, float endAngle, int color) 绘制圆环。static voiddrawRing(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float innerRadius, float outerRadius, float startAngle, float endAngle, int color, float smooth) static voiddrawRing(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float innerRadius, float outerRadius, float startAngle, float endAngle, int innerColor, int outerColor) static voiddrawRing(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float innerRadius, float outerRadius, float startAngle, float endAngle, int innerColor, int outerColor, float smooth) static intdrawString(com.mojang.blaze3d.vertex.PoseStack poseStack, String text, float x, float y, int color, boolean dropShadow) static intdrawString(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.gui.Font font, String text, float x, float y, int color, boolean dropShadow) static intdrawString(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component component, float x, float y, int color, boolean dropShadow) static intdrawString(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.gui.Font font, net.minecraft.util.FormattedCharSequence charSequence, float x, float y, int color, boolean dropShadow) static intdrawString(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.network.chat.Component component, float x, float y, int color, boolean dropShadow) static intdrawString(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.util.FormattedCharSequence charSequence, float x, float y, int color, boolean dropShadow) static voidfill(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, int color) 绘制矩形。static voidfillBorderRect(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, float radiusX, float radiusY, int color) 绘制带边框的圆角矩形(可分别指定X/Y半径)。static voidfillBorderRect(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, float radius, int color) 绘制带边框的圆角矩形。static voidfillCentered(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, int color) 绘制以(x, y)为中心的矩形。static voidfillRoundRect(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, float radius, int color) static voidfillRoundRect(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, int radius, int color) 绘制圆角矩形。static voidfillRoundRectCentered(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, float radius, int color) 绘制以(x, y)为中心的圆角矩形。static voidfillRoundRectCentered(com.mojang.blaze3d.vertex.PoseStack poseStack, float width, float height, float radius, int color) static voidfillSquare(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float sideLength, int color) 绘制正方形。static voidfillSquareCentered(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float sideLength, int color) 绘制以(x, y)为中心的正方形。static voidhLine(com.mojang.blaze3d.vertex.PoseStack poseStack, float minX, float maxX, float minY, float maxY, int color) 绘制水平线。static voidhLine(com.mojang.blaze3d.vertex.PoseStack poseStack, float minX, float maxX, float y, int color) 绘制水平线(单Y坐标)。static voidposeDraw(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.BufferBuilder bufferbuilder, float x1, float y1, float x2, float y2) 用于顶点缓冲区的绘制(带UV)。static voidposeDraw(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.BufferBuilder bufferbuilder, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1) static voidposeDraw(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.BufferBuilder bufferbuilder, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1, int color) static voidposeDraw(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.BufferBuilder bufferbuilder, float x1, float y1, float x2, float y2, int color) 用于顶点缓冲区的绘制(带颜色)。static voidposeFill(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.BufferBuilder bufferbuilder, float x1, float y1, float x2, float y2, int color) static voidvLine(com.mojang.blaze3d.vertex.PoseStack poseStack, float minX, float maxX, float minY, float maxY, int color) 绘制垂直线。static voidvLine(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float minY, float maxY, int color) 绘制垂直线(单X坐标)。
-
构造器详细资料
-
IUIGraphicUtils
public IUIGraphicUtils()
-
-
方法详细资料
-
fillSquareCentered
public static void fillSquareCentered(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float sideLength, int color) 绘制以(x, y)为中心的正方形。 -
fillSquare
public static void fillSquare(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float sideLength, int color) 绘制正方形。 -
fillCentered
public static void fillCentered(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, int color) 绘制以(x, y)为中心的矩形。 -
fill
public static void fill(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, int color) 绘制矩形。 -
fillRoundRectCentered
public static void fillRoundRectCentered(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, float radius, int color) 绘制以(x, y)为中心的圆角矩形。 -
fillRoundRectCentered
public static void fillRoundRectCentered(com.mojang.blaze3d.vertex.PoseStack poseStack, float width, float height, float radius, int color) -
fillRoundRect
public static void fillRoundRect(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, int radius, int color) 绘制圆角矩形。 -
fillRoundRect
public static void fillRoundRect(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, float radius, int color) -
fillBorderRect
public static void fillBorderRect(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, float radius, int color) 绘制带边框的圆角矩形。 -
fillBorderRect
public static void fillBorderRect(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, float radiusX, float radiusY, int color) 绘制带边框的圆角矩形(可分别指定X/Y半径)。 -
borderRoundRectCentered
public static void borderRoundRectCentered(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, float radius, int color, float borderThickness, int borderColor) 绘制带边框的圆角矩形(可指定边框厚度和颜色)。 -
borderRoundRectCentered
public static void borderRoundRectCentered(com.mojang.blaze3d.vertex.PoseStack poseStack, float width, float height, float radius, int color, float borderThickness, int borderColor) -
borderRoundRect
public static void borderRoundRect(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, float radius, int color, float borderThickness, int borderColor) -
_borderRoundRect
public static void _borderRoundRect(com.mojang.blaze3d.vertex.PoseStack poseStack, float x1, float y1, float x2, float y2, float radius, int color, float borderThickness, int borderColor) -
blit
public static void blit(com.mojang.blaze3d.vertex.PoseStack poseStack, 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(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.resources.ResourceLocation location, int x, int y, int width, int height) -
blit
public static void blit(com.mojang.blaze3d.vertex.PoseStack poseStack, int textureId, int x, int y, int width, int height) -
blit
public static void blit(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.resources.ResourceLocation location, float x1, float y1, float x2, float y2) -
blit
public static void blit(com.mojang.blaze3d.vertex.PoseStack poseStack, int textureId, float x1, float y1, float x2, float y2) -
_blit
public static void _blit(com.mojang.blaze3d.vertex.PoseStack poseStack, 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(com.mojang.blaze3d.vertex.PoseStack poseStack, 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(com.mojang.blaze3d.vertex.PoseStack poseStack, int textureId, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1) -
_blit
public static void _blit(com.mojang.blaze3d.vertex.PoseStack poseStack, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1) -
blitInUv
public static void blitInUv(com.mojang.blaze3d.vertex.PoseStack 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(com.mojang.blaze3d.vertex.PoseStack poseStack, int textureId, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1) -
_blitInUv
public static void _blitInUv(com.mojang.blaze3d.vertex.PoseStack poseStack, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1) -
blur
public static void blur(com.mojang.blaze3d.vertex.PoseStack poseStack, int textureId, float x1, float y1, float x2, float y2, float radius) 绘制模糊效果。 -
blur
public static void blur(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.resources.ResourceLocation atlasLocation, float x1, float y1, float x2, float y2, float radius) -
blur
public static void blur(com.mojang.blaze3d.vertex.PoseStack poseStack, 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(com.mojang.blaze3d.vertex.PoseStack poseStack, int textureId, float x1, float y1, float x2, float y2, float radius, float u0, float v0, float u1, float v1) -
_blur
public static void _blur(com.mojang.blaze3d.vertex.PoseStack poseStack, float x1, float y1, float x2, float y2, float radius, float u0, float v0, float u1, float v1) -
drawCenteredString
public static void drawCenteredString(com.mojang.blaze3d.vertex.PoseStack poseStack, String text, float x, float y, int color, boolean dropShadow) 居中绘制字符串。 -
drawCenteredString
public static void drawCenteredString(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.gui.Font font, String text, float x, float y, int color, boolean dropShadow) -
drawCenteredString
public static void drawCenteredString(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.network.chat.Component component, float x, float y, int color, boolean dropShadow) -
drawCenteredString
public static void drawCenteredString(com.mojang.blaze3d.vertex.PoseStack poseStack, 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(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.util.FormattedCharSequence charSequence, float x, float y, int color, boolean dropShadow) -
drawCenteredString
public static void drawCenteredString(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.gui.Font font, net.minecraft.util.FormattedCharSequence text, float x, float y, int color, boolean dropShadow) -
drawString
public static int drawString(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.util.FormattedCharSequence charSequence, float x, float y, int color, boolean dropShadow) -
drawString
public static int drawString(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.gui.Font font, @Nullable String text, float x, float y, int color, boolean dropShadow) -
drawString
public static int drawString(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.network.chat.Component component, float x, float y, int color, boolean dropShadow) -
drawString
public static int drawString(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.gui.Font font, net.minecraft.util.FormattedCharSequence charSequence, float x, float y, int color, boolean dropShadow) -
drawString
public static int drawString(com.mojang.blaze3d.vertex.PoseStack poseStack, @Nullable String text, float x, float y, int color, boolean dropShadow) -
drawString
public static int drawString(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component component, float x, float y, int color, boolean dropShadow) -
drawRing
public static void drawRing(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float innerRadius, float outerRadius, float startAngle, float endAngle, int color) 绘制圆环。 -
drawRing
public static void drawRing(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float innerRadius, float outerRadius, float startAngle, float endAngle, int color, float smooth) -
drawRing
public static void drawRing(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float innerRadius, float outerRadius, float startAngle, float endAngle, int innerColor, int outerColor) -
drawRing
public static void drawRing(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float innerRadius, float outerRadius, float startAngle, float endAngle, int innerColor, int outerColor, float smooth) -
blitRoundCentered
public static void blitRoundCentered(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.resources.ResourceLocation resourceLocation, float x, float y, int radius, float smooth) 居中绘制圆形纹理。 -
hLine
public static void hLine(com.mojang.blaze3d.vertex.PoseStack poseStack, float minX, float maxX, float minY, float maxY, int color) 绘制水平线。 -
vLine
public static void vLine(com.mojang.blaze3d.vertex.PoseStack poseStack, float minX, float maxX, float minY, float maxY, int color) 绘制垂直线。 -
hLine
public static void hLine(com.mojang.blaze3d.vertex.PoseStack poseStack, float minX, float maxX, float y, int color) 绘制水平线(单Y坐标)。 -
vLine
public static void vLine(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float minY, float maxY, int color) 绘制垂直线(单X坐标)。 -
poseDraw
public static void poseDraw(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.BufferBuilder bufferbuilder, float x1, float y1, float x2, float y2) 用于顶点缓冲区的绘制(带UV)。 -
poseDraw
public static void poseDraw(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.BufferBuilder bufferbuilder, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1) -
poseDraw
public static void poseDraw(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.BufferBuilder bufferbuilder, float x1, float y1, float x2, float y2, int color) 用于顶点缓冲区的绘制(带颜色)。 -
poseDraw
public static void poseDraw(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.BufferBuilder bufferbuilder, float x1, float y1, float x2, float y2, float u0, float v0, float u1, float v1, int color) -
poseFill
public static void poseFill(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.BufferBuilder bufferbuilder, float x1, float y1, float x2, float y2, int color)
-