java.lang.Object
me.andreasmelone.glowingeyes.client.util.GuiUtil

public class GuiUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    drawBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation backgroundTexture, int x, int y, int width, int height)
    Draw the background texture
    static void
    drawWrappedText(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component text, int x, int y, int maxWidth, int color)
     
    static com.mojang.blaze3d.platform.NativeImage
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GuiUtil

      public GuiUtil()
  • Method Details

    • drawBackground

      public static void drawBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation backgroundTexture, int x, int y, int width, int height)
      Draw the background texture
      Parameters:
      x - The x position of the texture (usually named guiLeft)
      y - The y position of the texture (usually named guiTop)
      width - The width of the texture (usually named xSize)
      height - The height of the texture (usually named ySize)
    • toNativeImage

      public static com.mojang.blaze3d.platform.NativeImage toNativeImage(BufferedImage image)
    • drawWrappedText

      public static void drawWrappedText(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component text, int x, int y, int maxWidth, int color)