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

public class IUIGuiUtils extends Object
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 void
    blit(net.minecraft.client.gui.GuiGraphics guiGraphics, int textureId, float x1, float y1, float x2, float y2)
     
    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)
     
    static void
    blit(net.minecraft.client.gui.GuiGraphics guiGraphics, int textureId, int x, int y, int width, int height)
     
    static void
    blit(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation location, float x1, float y1, float x2, float y2)
     
    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)
     
    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)
    绘制纹理贴图。
    static void
    blit(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation location, int x, int y, int width, int height)
     
    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)
     
    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坐标的纹理贴图。
    static void
    blitRoundCentered(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation resourceLocation, float x, float y, int radius, float smooth)
    居中绘制圆形纹理。
    static void
    blur(net.minecraft.client.gui.GuiGraphics guiGraphics, int textureId, float x1, float y1, float x2, float y2, float radius)
    绘制模糊效果。
    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)
     
    static void
    blur(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation atlasLocation, float x1, float y1, float x2, float y2, float radius)
     
    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)
     
    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)
     
    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)
    绘制带边框的圆角矩形(可指定边框厚度和颜色)。
    static void
    borderRoundRectCentered(net.minecraft.client.gui.GuiGraphics guiGraphics, float width, float height, float radius, int color, float borderThickness, int borderColor)
     
    static void
    drawCenteredString(net.minecraft.client.gui.GuiGraphics guiGraphics, String text, float x, float y, int color, boolean dropShadow)
    居中绘制字符串。
    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)
     
    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)
     
    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)
     
    static void
    drawCenteredString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.network.chat.Component component, float x, float y, int color, boolean dropShadow)
     
    static void
    drawCenteredString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.util.FormattedCharSequence charSequence, float x, float y, int color, boolean dropShadow)
     
    static void
    drawRing(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float innerRadius, float outerRadius, float startAngle, float endAngle, int color)
    绘制圆环。
    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)
     
    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)
     
    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)
     
    static int
    drawString(net.minecraft.client.gui.GuiGraphics guiGraphics, String text, float x, float y, int color, boolean dropShadow)
     
    static int
    drawString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, String text, float x, float y, int color, boolean dropShadow)
     
    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)
     
    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)
     
    static int
    drawString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.network.chat.Component component, float x, float y, int color, boolean dropShadow)
     
    static int
    drawString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.util.FormattedCharSequence charSequence, float x, float y, int color, boolean dropShadow)
     
    static void
    fill(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, int color)
    绘制矩形。
    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半径)。
    static void
    fillBorderRect(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, float radius, int color)
    绘制带边框的圆角矩形。
    static void
    fillCentered(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, int color)
    绘制以(x, y)为中心的矩形。
    static void
    fillRoundRect(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, float radius, int color)
     
    static void
    fillRoundRect(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, int radius, int color)
    绘制圆角矩形。
    static void
    fillRoundRectCentered(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float width, float height, float radius, int color)
    绘制以(x, y)为中心的圆角矩形。
    static void
    fillRoundRectCentered(net.minecraft.client.gui.GuiGraphics guiGraphics, float width, float height, float radius, int color)
     
    static void
    fillSquare(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float sideLength, int color)
    绘制正方形。
    static void
    fillSquareCentered(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float y, float sideLength, int color)
    绘制以(x, y)为中心的正方形。
    static void
    guiFill(net.minecraft.client.gui.GuiGraphics guiGraphics, float x1, float y1, float x2, float y2, int color)
    Gui专用的矩形填充。
    static void
    hLine(net.minecraft.client.gui.GuiGraphics guiGraphics, float minX, float maxX, float minY, float maxY, int color)
    绘制水平线。
    static void
    hLine(net.minecraft.client.gui.GuiGraphics guiGraphics, float minX, float maxX, float y, int color)
    绘制水平线(单Y坐标)。
    static void
    renderSlotBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y)
    渲染物品槽背景。
    static void
    renderSlotBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int bg_color, int border_color)
    渲染物品槽背景(可自定义颜色)。
    static void
    vLine(net.minecraft.client.gui.GuiGraphics guiGraphics, float minX, float maxX, float minY, float maxY, int color)
    绘制垂直线。
    static void
    vLine(net.minecraft.client.gui.GuiGraphics guiGraphics, float x, float minY, float maxY, int color)
    绘制垂直线(单X坐标)。

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

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

    • 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)
      渲染物品槽背景(可自定义颜色)。