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 net.minecraft.client.gui.components.WidgetSprites
    createSprites(String namespace, String location1, String location2)
     
    static net.minecraft.client.gui.components.WidgetSprites
    createSprites(String namespace, String location1, String location2, String location3)
     
    static net.minecraft.client.gui.components.WidgetSprites
    createSprites(String namespace, String enabled, String disabled, String enabledHighlighted, String disabledHighlighted)
     
    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)
     

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

      public static net.minecraft.client.gui.components.WidgetSprites createSprites(String namespace, String location1, String location2)
    • createSprites

      public static net.minecraft.client.gui.components.WidgetSprites createSprites(String namespace, String location1, String location2, String location3)
    • createSprites

      public static net.minecraft.client.gui.components.WidgetSprites createSprites(String namespace, String enabled, String disabled, String enabledHighlighted, String disabledHighlighted)
    • 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)