java.lang.Object
net.ixdarklord.coolcatcore.internal.config.client.gui.style.GuiSprites

public final class GuiSprites extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    blitSprite(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.resources.ResourceLocation sprite, int x, int y, int width, int height)
    Draws a sprite over a rectangle, scaled as its .mcmeta says.
    static void
    blitSprite(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.resources.ResourceLocation sprite, int x, int y, int width, int height, int color)
    static void
    Forgets every sprite's scaling, after resources reload.
    static net.minecraft.resources.ResourceLocation
    texture(net.minecraft.resources.ResourceLocation sprite)
    The texture a sprite id names: ns:path is ns:textures/gui/sprites/path.png, a .png path is itself.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • texture

      public static net.minecraft.resources.ResourceLocation texture(net.minecraft.resources.ResourceLocation sprite)
      The texture a sprite id names: ns:path is ns:textures/gui/sprites/path.png, a .png path is itself.
    • blitSprite

      public static void blitSprite(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.resources.ResourceLocation sprite, int x, int y, int width, int height)
      Draws a sprite over a rectangle, scaled as its .mcmeta says.
    • blitSprite

      public static void blitSprite(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.resources.ResourceLocation sprite, int x, int y, int width, int height, int color)
    • clearCache

      public static void clearCache()
      Forgets every sprite's scaling, after resources reload.