Class GuiUtils
java.lang.Object
com.portingdeadmods.portingdeadlibs.utils.renderers.GuiUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classAllows multiple compound effects -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidShould be called when appropriate (e.g., screen close)static voiddrawBlending(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation texturePath, int x, int y, int width, int height, GuiUtils.BlendMode blendMode) Blit to the screen with a specific blend mode.static voiddrawImg(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation texturePath, int x, int y, int width, int height) static voiddrawWithZ(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation texturePath, int x, int y, int z, int width, int height) static voidrenderRect(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int lineWidth, int lineColor, int fillColor)
-
Constructor Details
-
GuiUtils
public GuiUtils()
-
-
Method Details
-
drawImg
public static void drawImg(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation texturePath, int x, int y, int width, int height) -
drawWithZ
public static void drawWithZ(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation texturePath, int x, int y, int z, int width, int height) -
renderRect
public static void renderRect(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int lineWidth, int lineColor, int fillColor) -
cleanupDynamicTextures
public static void cleanupDynamicTextures()Should be called when appropriate (e.g., screen close) -
drawBlending
public static void drawBlending(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation texturePath, int x, int y, int width, int height, GuiUtils.BlendMode blendMode) Blit to the screen with a specific blend mode.
-