java.lang.Object
com.portingdeadmods.portingdeadlibs.utils.renderers.GuiUtils

public final class GuiUtils extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
    static class 
    Allows multiple compound effects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Should be called when appropriate (e.g., screen close)
    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.
    static void
    drawImg(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation texturePath, int x, int y, int width, int height)
     
    static void
    drawWithZ(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation texturePath, int x, int y, int z, int width, int height)
     
    static void
    renderRect(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int lineWidth, int lineColor, int fillColor)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.