类 IUIGraphicUtils

java.lang.Object
org.hiedacamellia.immersiveui.client.graphic.util.IUIGraphicUtils

public class IUIGraphicUtils extends Object
图形绘制相关的工具类,提供基础形状、纹理、文本等渲染方法。
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    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 void
    blit(com.mojang.blaze3d.vertex.PoseStack poseStack, int textureId, float x1, float y1, float x2, float y2)
     
    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)
     
    static void
    blit(com.mojang.blaze3d.vertex.PoseStack poseStack, int textureId, int x, int y, int width, int height)
     
    static void
    blit(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.resources.ResourceLocation location, float x1, float y1, float x2, float y2)
     
    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)
     
    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)
    绘制纹理贴图。
    static void
    blit(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.resources.ResourceLocation location, int x, int y, int width, int height)
     
    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)
     
    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坐标的纹理贴图。
    static void
    blitRoundCentered(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.resources.ResourceLocation resourceLocation, float x, float y, int radius, float smooth)
    居中绘制圆形纹理。
    static void
    blur(com.mojang.blaze3d.vertex.PoseStack poseStack, int textureId, float x1, float y1, float x2, float y2, float radius)
    绘制模糊效果。
    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)
     
    static void
    blur(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.resources.ResourceLocation atlasLocation, float x1, float y1, float x2, float y2, float radius)
     
    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)
     
    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)
     
    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)
    绘制带边框的圆角矩形(可指定边框厚度和颜色)。
    static void
    borderRoundRectCentered(com.mojang.blaze3d.vertex.PoseStack poseStack, float width, float height, float radius, int color, float borderThickness, int borderColor)
     
    static void
    drawCenteredString(com.mojang.blaze3d.vertex.PoseStack poseStack, String text, float x, float y, int color, boolean dropShadow)
    居中绘制字符串。
    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)
     
    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)
     
    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)
     
    static void
    drawCenteredString(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.network.chat.Component component, float x, float y, int color, boolean dropShadow)
     
    static void
    drawCenteredString(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.util.FormattedCharSequence charSequence, float x, float y, int color, boolean dropShadow)
     
    static void
    drawRing(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float innerRadius, float outerRadius, float startAngle, float endAngle, int color)
    绘制圆环。
    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)
     
    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)
     
    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)
     
    static int
    drawString(com.mojang.blaze3d.vertex.PoseStack poseStack, String text, float x, float y, int color, boolean dropShadow)
     
    static int
    drawString(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.gui.Font font, String text, float x, float y, int color, boolean dropShadow)
     
    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)
     
    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)
     
    static int
    drawString(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.network.chat.Component component, float x, float y, int color, boolean dropShadow)
     
    static int
    drawString(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.util.FormattedCharSequence charSequence, float x, float y, int color, boolean dropShadow)
     
    static void
    fill(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, int color)
    绘制矩形。
    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半径)。
    static void
    fillBorderRect(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, float radius, int color)
    绘制带边框的圆角矩形。
    static void
    fillCentered(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, int color)
    绘制以(x, y)为中心的矩形。
    static void
    fillRoundRect(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, float radius, int color)
     
    static void
    fillRoundRect(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, int radius, int color)
    绘制圆角矩形。
    static void
    fillRoundRectCentered(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float width, float height, float radius, int color)
    绘制以(x, y)为中心的圆角矩形。
    static void
    fillRoundRectCentered(com.mojang.blaze3d.vertex.PoseStack poseStack, float width, float height, float radius, int color)
     
    static void
    fillSquare(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float sideLength, int color)
    绘制正方形。
    static void
    fillSquareCentered(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float sideLength, int color)
    绘制以(x, y)为中心的正方形。
    static void
    hLine(com.mojang.blaze3d.vertex.PoseStack poseStack, float minX, float maxX, float minY, float maxY, int color)
    绘制水平线。
    static void
    hLine(com.mojang.blaze3d.vertex.PoseStack poseStack, float minX, float maxX, float y, int color)
    绘制水平线(单Y坐标)。
    static void
    poseDraw(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.BufferBuilder bufferbuilder, float x1, float y1, float x2, float y2)
    用于顶点缓冲区的绘制(带UV)。
    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)
     
    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)
     
    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)
    用于顶点缓冲区的绘制(带颜色)。
    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)
     
    static void
    vLine(com.mojang.blaze3d.vertex.PoseStack poseStack, float minX, float maxX, float minY, float maxY, int color)
    绘制垂直线。
    static void
    vLine(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float minY, float maxY, int color)
    绘制垂直线(单X坐标)。

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • 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)