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

public class GuiUtil extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    buttonBuilder(net.minecraft.network.chat.Component component, net.minecraft.client.gui.components.Button.OnPress onPress)
     
    static void
    drawBackground(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.resources.ResourceLocation backgroundTexture, int x, int y, int width, int height)
    Draw the background texture
    static void
    drawWrappedText(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component text, int x, int y, int maxWidth, int color)
     
    static void
    renderOutline(com.mojang.blaze3d.vertex.PoseStack poseStack, int x, int y, int sizeX, int sizeY, 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(com.mojang.blaze3d.vertex.PoseStack poseStack, 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(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component text, int x, int y, int maxWidth, int color)
    • renderOutline

      public static void renderOutline(com.mojang.blaze3d.vertex.PoseStack poseStack, int x, int y, int sizeX, int sizeY, int color)
    • buttonBuilder

      public static GuiUtil.ButtonBuilder buttonBuilder(net.minecraft.network.chat.Component component, net.minecraft.client.gui.components.Button.OnPress onPress)