类 ScreenUtils

java.lang.Object
net.minecraftforge.client.gui.ScreenUtils

@Deprecated(forRemoval=true) public class ScreenUtils extends Object
已过时, 待删除: 此 API 元素将从以后的版本中删除。
Use extension methods in IForgeGuiGraphics instead
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 元素将从以后的版本中删除。
     
  • 构造器概要

    构造器
    构造器
    说明
    已过时, 待删除: 此 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 元素将从以后的版本中删除。
     

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

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • 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

      public static final String UNDO_CHAR
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      另请参阅:
    • RESET_CHAR

      public static final String RESET_CHAR
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      另请参阅:
    • VALID

      public static final String VALID
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      另请参阅:
    • INVALID

      public static final String 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 graphics
      x - x axis offset
      y - y axis offset
      u - bound resource location image x offset
      v - bound resource location image y offset
      width - the desired box width
      height - the desired box height
      textureWidth - the width of the box texture in the resource location image
      textureHeight - the height of the box texture in the resource location image
      borderSize - the size of the box's borders
      zLevel - 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 graphics
      res - the ResourceLocation object that contains the desired image
      x - x axis offset
      y - y axis offset
      u - bound resource location image x offset
      v - bound resource location image y offset
      width - the desired box width
      height - the desired box height
      textureWidth - the width of the box texture in the resource location image
      textureHeight - the height of the box texture in the resource location image
      borderSize - the size of the box's borders
      zLevel - 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 graphics
      res - the ResourceLocation object that contains the desired image
      x - x axis offset
      y - y axis offset
      u - bound resource location image x offset
      v - bound resource location image y offset
      width - the desired box width
      height - the desired box height
      textureWidth - the width of the box texture in the resource location image
      textureHeight - the height of the box texture in the resource location image
      topBorder - the size of the box's top border
      bottomBorder - the size of the box's bottom border
      leftBorder - the size of the box's left border
      rightBorder - the size of the box's right border
      zLevel - 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 graphics
      x - x axis offset
      y - y axis offset
      u - bound resource location image x offset
      v - bound resource location image y offset
      width - the desired box width
      height - the desired box height
      textureWidth - the width of the box texture in the resource location image
      textureHeight - the height of the box texture in the resource location image
      topBorder - the size of the box's top border
      bottomBorder - the size of the box's bottom border
      leftBorder - the size of the box's left border
      rightBorder - the size of the box's right border
      zLevel - 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 元素将从以后的版本中删除。