Class GuiUtil
java.lang.Object
me.andreasmelone.glowingeyes.client.util.GuiUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddrawBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation backgroundTexture, int x, int y, int width, int height) Draw the background texturestatic voiddrawWrappedText(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.NativeImagetoNativeImage(BufferedImage image)
-
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
-
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)
-