Class SimpleRenderContext
java.lang.Object
guideme.render.SimpleRenderContext
- All Implemented Interfaces:
RenderContext
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleRenderContext(LytRect viewport, net.minecraft.client.gui.GuiGraphics guiGraphics) SimpleRenderContext(LytRect viewport, net.minecraft.client.gui.GuiGraphics guiGraphics, LightDarkMode lightDarkMode) SimpleRenderContext(net.minecraft.client.gui.GuiGraphics guiGraphics) -
Method Summary
Modifier and TypeMethodDescriptionvoidfillRect(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, LytRect rect, ColorValue topLeft, ColorValue topRight, ColorValue bottomRight, ColorValue bottomLeft) voidfillTexturedRect(LytRect rect, net.minecraft.resources.Identifier textureId, ColorValue topLeft, ColorValue topRight, ColorValue bottomRight, ColorValue bottomLeft, float u0, float v0, float u1, float v1) voidfillTriangle(org.joml.Vector2f p1, org.joml.Vector2f p2, org.joml.Vector2f p3, ColorValue color) net.minecraft.client.gui.GuiGraphicsvoidvoidpushScissor(LytRect bounds) voidrenderItem(net.minecraft.world.item.ItemStack stack, int x, int y, int z, float width, float height) intresolveColor(ColorValue ref) viewport()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RenderContext
drawIcon, drawIcon, drawIcon, fillGradientHorizontal, fillGradientHorizontal, fillGradientVertical, fillGradientVertical, fillIcon, fillIcon, fillIcon, fillIcon, fillIcon, fillRect, fillRect, fillRect, fillRect, fillTexturedRect, fillTexturedRect, fillTexturedRect, fillTexturedRect, fillTexturedRect, fillTexturedRect, font, getAdvance, getWidth, intersectsViewport, isDarkMode, mutableColor, poseStack, renderFluid, renderFluid, renderItem, renderPanel, renderText, renderTextCenteredIn
-
Constructor Details
-
SimpleRenderContext
public SimpleRenderContext(LytRect viewport, net.minecraft.client.gui.GuiGraphics guiGraphics, LightDarkMode lightDarkMode) -
SimpleRenderContext
-
SimpleRenderContext
public SimpleRenderContext(net.minecraft.client.gui.GuiGraphics guiGraphics)
-
-
Method Details
-
resolveColor
- Specified by:
resolveColorin interfaceRenderContext
-
fillRect
public void fillRect(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, LytRect rect, ColorValue topLeft, ColorValue topRight, ColorValue bottomRight, ColorValue bottomLeft) - Specified by:
fillRectin interfaceRenderContext
-
fillTexturedRect
public void fillTexturedRect(LytRect rect, net.minecraft.resources.Identifier textureId, ColorValue topLeft, ColorValue topRight, ColorValue bottomRight, ColorValue bottomLeft, float u0, float v0, float u1, float v1) - Specified by:
fillTexturedRectin interfaceRenderContext
-
fillTriangle
public void fillTriangle(org.joml.Vector2f p1, org.joml.Vector2f p2, org.joml.Vector2f p3, ColorValue color) - Specified by:
fillTrianglein interfaceRenderContext
-
renderItem
public void renderItem(net.minecraft.world.item.ItemStack stack, int x, int y, int z, float width, float height) - Specified by:
renderItemin interfaceRenderContext
-
pushScissor
- Specified by:
pushScissorin interfaceRenderContext
-
popScissor
public void popScissor()- Specified by:
popScissorin interfaceRenderContext
-
viewport
- Specified by:
viewportin interfaceRenderContext
-
guiGraphics
public net.minecraft.client.gui.GuiGraphics guiGraphics()- Specified by:
guiGraphicsin interfaceRenderContext
-
lightDarkMode
- Specified by:
lightDarkModein interfaceRenderContext
-