Package guideme.render
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 TypeMethodDescriptionvoid
fillRect
(LytRect rect, ColorValue topLeft, ColorValue topRight, ColorValue bottomRight, ColorValue bottomLeft) void
fillTexturedRect
(LytRect rect, net.minecraft.resources.ResourceLocation textureId, ColorValue topLeft, ColorValue topRight, ColorValue bottomRight, ColorValue bottomLeft, float u0, float v0, float u1, float v1) void
fillTriangle
(net.minecraft.world.phys.Vec2 p1, net.minecraft.world.phys.Vec2 p2, net.minecraft.world.phys.Vec2 p3, ColorValue color) net.minecraft.client.gui.GuiGraphics
void
void
pushScissor
(LytRect bounds) void
renderItem
(net.minecraft.world.item.ItemStack stack, int x, int y, int z, float width, float height) int
resolveColor
(ColorValue ref) viewport()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface guideme.render.RenderContext
beginBatch, drawIcon, drawIcon, drawIcon, endBatch, fillGradientHorizontal, fillGradientHorizontal, fillGradientVertical, fillGradientVertical, fillIcon, fillIcon, fillIcon, fillIcon, fillIcon, fillRect, fillRect, fillTexturedRect, fillTexturedRect, fillTexturedRect, fillTexturedRect, fillTexturedRect, fillTexturedRect, font, getAdvance, getWidth, intersectsViewport, isDarkMode, mutableColor, poseStack, renderFluid, renderFluid, renderItem, renderPanel, renderText, renderTextCenteredIn, renderTextInBatch
-
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:
resolveColor
in interfaceRenderContext
-
fillRect
public void fillRect(LytRect rect, ColorValue topLeft, ColorValue topRight, ColorValue bottomRight, ColorValue bottomLeft) - Specified by:
fillRect
in interfaceRenderContext
-
fillTexturedRect
public void fillTexturedRect(LytRect rect, net.minecraft.resources.ResourceLocation textureId, ColorValue topLeft, ColorValue topRight, ColorValue bottomRight, ColorValue bottomLeft, float u0, float v0, float u1, float v1) - Specified by:
fillTexturedRect
in interfaceRenderContext
-
fillTriangle
public void fillTriangle(net.minecraft.world.phys.Vec2 p1, net.minecraft.world.phys.Vec2 p2, net.minecraft.world.phys.Vec2 p3, ColorValue color) - Specified by:
fillTriangle
in interfaceRenderContext
-
renderItem
public void renderItem(net.minecraft.world.item.ItemStack stack, int x, int y, int z, float width, float height) - Specified by:
renderItem
in interfaceRenderContext
-
pushScissor
- Specified by:
pushScissor
in interfaceRenderContext
-
popScissor
public void popScissor()- Specified by:
popScissor
in interfaceRenderContext
-
viewport
- Specified by:
viewport
in interfaceRenderContext
-
guiGraphics
public net.minecraft.client.gui.GuiGraphics guiGraphics()- Specified by:
guiGraphics
in interfaceRenderContext
-
lightDarkMode
- Specified by:
lightDarkMode
in interfaceRenderContext
-