Class GuiGraphicsExtractor
java.lang.Object
net.ixdarklord.folios.internal.compat.GuiGraphicsExtractor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhat text shows of the part under the mouse (1.21.1 has no mouse cursor shapes, so only its tooltip).static final class26.1's 2D transform stack, on 1.21.1's PoseStack. -
Method Summary
Modifier and TypeMethodDescriptionvoidblit(Object pipeline, net.minecraft.resources.ResourceLocation texture, int x, int y, float u, float v, int width, int height, int textureWidth, int textureHeight) voidblit(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) voidblit(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) voidblit(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) voidblitSprite(Object pipeline, net.minecraft.resources.ResourceLocation sprite, int x, int y, int width, int height) voidblitSprite(Object pipeline, net.minecraft.resources.ResourceLocation sprite, int x, int y, int width, int height, float alpha) voidblitSprite(Object pipeline, net.minecraft.resources.ResourceLocation sprite, int x, int y, int width, int height, int color) voidBlurs what's drawn so far (the panorama or the world), as vanilla's menu background does.voidvoidenableScissor(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).voidfakeItem(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.voidfill(int x0, int y0, int x1, int y1, int color) voidfillGradient(int x0, int y0, int x1, int y1, int top, int bottom) intintguiWidth()voiditemDecorations(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.voidWhat's drawn next goes over what came before.static GuiGraphicsExtractorof(net.minecraft.client.gui.GuiGraphics raw) The 26.1-style view of a GuiGraphics (one per frame's graphics, reused).pose()net.minecraft.client.gui.GuiGraphicsraw()voidrequestCursor(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).voidsetTooltipForNextFrame(net.minecraft.client.gui.Font font, List<net.minecraft.util.FormattedCharSequence> lines, int x, int y) voidsetTooltipForNextFrame(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) voidsetTooltipForNextFrame(net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component text, int x, int y) voidvoidtext(net.minecraft.client.gui.Font font, @Nullable String text, int x, int y, int color, boolean shadow) voidtext(net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component text, int x, int y, int color) voidtext(net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component text, int x, int y, int color, boolean shadow) voidtext(net.minecraft.client.gui.Font font, net.minecraft.util.FormattedCharSequence text, int x, int y, int color) voidtext(net.minecraft.client.gui.Font font, net.minecraft.util.FormattedCharSequence text, int x, int y, int color, boolean shadow) voidtextHighlight(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.voidtexture(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.
-
Method Details
-
of
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
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
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)
-