Class GuiGraphicsExtractor

java.lang.Object
net.ixdarklord.folios.internal.compat.GuiGraphicsExtractor

public final class GuiGraphicsExtractor extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    What text shows of the part under the mouse (1.21.1 has no mouse cursor shapes, so only its tooltip).
    static final class 
    26.1's 2D transform stack, on 1.21.1's PoseStack.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    blit(Object pipeline, net.minecraft.resources.ResourceLocation texture, int x, int y, float u, float v, int width, int height, int textureWidth, int textureHeight)
     
    void
    blit(Object pipeline, net.minecraft.resources.ResourceLocation texture, int x, int y, float u, float v, int width, int height, int textureWidth, int textureHeight, int color)
     
    void
    blit(Object pipeline, net.minecraft.resources.ResourceLocation texture, int x, int y, float u, float v, int width, int height, int regionWidth, int regionHeight, int textureWidth, int textureHeight)
     
    void
    blit(Object pipeline, net.minecraft.resources.ResourceLocation texture, int x, int y, float u, float v, int width, int height, int regionWidth, int regionHeight, int textureWidth, int textureHeight, int color)
     
    void
    blitSprite(Object pipeline, net.minecraft.resources.ResourceLocation sprite, int x, int y, int width, int height)
     
    void
    blitSprite(Object pipeline, net.minecraft.resources.ResourceLocation sprite, int x, int y, int width, int height, float alpha)
     
    void
    blitSprite(Object pipeline, net.minecraft.resources.ResourceLocation sprite, int x, int y, int width, int height, int color)
     
    void
    Blurs what's drawn so far (the panorama or the world), as vanilla's menu background does.
    void
     
    void
    enableScissor(int x0, int y0, int x1, int y1)
    Clips to a box given in the current transform (1.21.1's scissor ignores the transform, 26.1's doesn't).
    void
    fakeItem(net.minecraft.world.item.ItemStack stack, int x, int y)
    An item as an icon, without what a stack in a slot shows over it.
    void
    fill(int x0, int y0, int x1, int y1, int color)
     
    void
    fillGradient(int x0, int y0, int x1, int y1, int top, int bottom)
     
    int
     
    int
     
    void
    itemDecorations(net.minecraft.client.gui.Font font, net.minecraft.world.item.ItemStack stack, int x, int y)
    The count and durability bar of a stack in a slot, over its icon.
    void
    What's drawn next goes over what came before.
    of(net.minecraft.client.gui.GuiGraphics raw)
    The 26.1-style view of a GuiGraphics (one per frame's graphics, reused).
     
    net.minecraft.client.gui.GuiGraphics
    raw()
     
    void
    Asks for a mouse cursor shape for this frame (1.21.1 has none of its own: Cursors sets it on the window).
    void
    setTooltipForNextFrame(net.minecraft.client.gui.Font font, List<net.minecraft.util.FormattedCharSequence> lines, int x, int y)
     
    void
    setTooltipForNextFrame(net.minecraft.client.gui.Font font, List<net.minecraft.util.FormattedCharSequence> lines, net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipPositioner positioner, int x, int y, boolean focused)
     
    void
    setTooltipForNextFrame(net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component text, int x, int y)
     
    void
    text(net.minecraft.client.gui.Font font, @Nullable String text, int x, int y, int color)
     
    void
    text(net.minecraft.client.gui.Font font, @Nullable String text, int x, int y, int color, boolean shadow)
     
    void
    text(net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component text, int x, int y, int color)
     
    void
    text(net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component text, int x, int y, int color, boolean shadow)
     
    void
    text(net.minecraft.client.gui.Font font, net.minecraft.util.FormattedCharSequence text, int x, int y, int color)
     
    void
    text(net.minecraft.client.gui.Font font, net.minecraft.util.FormattedCharSequence text, int x, int y, int color, boolean shadow)
     
    void
    textHighlight(int x0, int y0, int x1, int y1, boolean focused)
    A text selection's inverted box.
    A collector that draws the lines handed to it, with the hover of what's under the mouse.
     
    void
    texture(int textureId, int x0, int y0, int x1, int y1, float u0, float u1, float v0, float v1, int color)
    A GL texture (a render target's) over a box, with a colour: 26.1's blit of a texture view.

    Methods inherited from class java.lang.Object

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

    • of

      public static GuiGraphicsExtractor of(net.minecraft.client.gui.GuiGraphics raw)
      The 26.1-style view of a GuiGraphics (one per frame's graphics, reused).
    • raw

      public net.minecraft.client.gui.GuiGraphics raw()
    • pose

    • guiWidth

      public int guiWidth()
    • guiHeight

      public int guiHeight()
    • fill

      public void fill(int x0, int y0, int x1, int y1, int color)
    • fillGradient

      public void fillGradient(int x0, int y0, int x1, int y1, int top, int bottom)
    • textHighlight

      public void textHighlight(int x0, int y0, int x1, int y1, boolean focused)
      A text selection's inverted box.
    • text

      public void text(net.minecraft.client.gui.Font font, @Nullable @Nullable String text, int x, int y, int color, boolean shadow)
    • text

      public void text(net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component text, int x, int y, int color, boolean shadow)
    • text

      public void text(net.minecraft.client.gui.Font font, net.minecraft.util.FormattedCharSequence text, int x, int y, int color, boolean shadow)
    • text

      public void text(net.minecraft.client.gui.Font font, @Nullable @Nullable String text, int x, int y, int color)
    • text

      public void text(net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component text, int x, int y, int color)
    • text

      public void text(net.minecraft.client.gui.Font font, net.minecraft.util.FormattedCharSequence text, int x, int y, int color)
    • textRenderer

      public ActiveTextCollector textRenderer()
      A collector that draws the lines handed to it, with the hover of what's under the mouse.
    • textRenderer

    • fakeItem

      public void fakeItem(net.minecraft.world.item.ItemStack stack, int x, int y)
      An item as an icon, without what a stack in a slot shows over it.
    • itemDecorations

      public void itemDecorations(net.minecraft.client.gui.Font font, net.minecraft.world.item.ItemStack stack, int x, int y)
      The count and durability bar of a stack in a slot, over its icon.
    • texture

      public void texture(int textureId, int x0, int y0, int x1, int y1, float u0, float u1, float v0, float v1, int color)
      A GL texture (a render target's) over a box, with a colour: 26.1's blit of a texture view.
    • blit

      public void blit(Object pipeline, net.minecraft.resources.ResourceLocation texture, int x, int y, float u, float v, int width, int height, int regionWidth, int regionHeight, int textureWidth, int textureHeight, int color)
    • blit

      public void blit(Object pipeline, net.minecraft.resources.ResourceLocation texture, int x, int y, float u, float v, int width, int height, int regionWidth, int regionHeight, int textureWidth, int textureHeight)
    • blit

      public void blit(Object pipeline, net.minecraft.resources.ResourceLocation texture, int x, int y, float u, float v, int width, int height, int textureWidth, int textureHeight, int color)
    • blit

      public void blit(Object pipeline, net.minecraft.resources.ResourceLocation texture, int x, int y, float u, float v, int width, int height, int textureWidth, int textureHeight)
    • blitSprite

      public void blitSprite(Object pipeline, net.minecraft.resources.ResourceLocation sprite, int x, int y, int width, int height, int color)
    • blitSprite

      public void blitSprite(Object pipeline, net.minecraft.resources.ResourceLocation sprite, int x, int y, int width, int height, float alpha)
    • blitSprite

      public void blitSprite(Object pipeline, net.minecraft.resources.ResourceLocation sprite, int x, int y, int width, int height)
    • enableScissor

      public void enableScissor(int x0, int y0, int x1, int y1)
      Clips to a box given in the current transform (1.21.1's scissor ignores the transform, 26.1's doesn't).
    • disableScissor

      public void disableScissor()
    • nextStratum

      public void nextStratum()
      What's drawn next goes over what came before.
    • blurBeforeThisStratum

      public void blurBeforeThisStratum()
      Blurs what's drawn so far (the panorama or the world), as vanilla's menu background does.
    • requestCursor

      public void requestCursor(CursorTypes cursor)
      Asks for a mouse cursor shape for this frame (1.21.1 has none of its own: Cursors sets it on the window).
    • setTooltipForNextFrame

      public void setTooltipForNextFrame(net.minecraft.client.gui.Font font, List<net.minecraft.util.FormattedCharSequence> lines, int x, int y)
    • setTooltipForNextFrame

      public void setTooltipForNextFrame(net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component text, int x, int y)
    • setTooltipForNextFrame

      public void setTooltipForNextFrame(net.minecraft.client.gui.Font font, List<net.minecraft.util.FormattedCharSequence> lines, net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipPositioner positioner, int x, int y, boolean focused)