Package guideme.render
Interface RenderContext
- All Known Implementing Classes:
SimpleRenderContext
public interface RenderContext
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
default void
drawIcon
(int x, int y, GuiSprite guiSprite, ColorValue color) default void
drawIcon
(int x, int y, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, ColorValue color) default void
fillGradientHorizontal
(int x, int y, int width, int height, ColorValue left, ColorValue right) default void
fillGradientHorizontal
(LytRect rect, ColorValue left, ColorValue right) default void
fillGradientVertical
(int x, int y, int width, int height, ColorValue top, ColorValue bottom) default void
fillGradientVertical
(LytRect rect, ColorValue top, ColorValue bottom) default void
default void
fillIcon
(int x, int y, int width, int height, GuiSprite guiSprite, ColorValue color) default void
fillIcon
(int x, int y, int width, int height, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, ColorValue color) default void
default void
fillIcon
(LytRect bounds, GuiSprite guiSprite, ColorValue color) default void
fillRect
(int x, int y, int width, int height, ColorValue color) default void
fillRect
(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, LytRect rect, ColorValue color) void
fillRect
(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, LytRect rect, ColorValue topLeft, ColorValue topRight, ColorValue bottomRight, ColorValue bottomLeft) default void
fillRect
(LytRect rect, ColorValue color) default void
fillRect
(LytRect rect, ColorValue topLeft, ColorValue topRight, ColorValue bottomRight, ColorValue bottomLeft) default void
fillTexturedRect
(LytRect rect, GuidePageTexture texture) default void
fillTexturedRect
(LytRect rect, GuidePageTexture texture, ColorValue color) default void
fillTexturedRect
(LytRect rect, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, ColorValue color) default void
fillTexturedRect
(LytRect rect, net.minecraft.resources.ResourceLocation textureId) default void
fillTexturedRect
(LytRect rect, net.minecraft.resources.ResourceLocation textureId, ColorValue color) default void
fillTexturedRect
(LytRect rect, net.minecraft.resources.ResourceLocation texture, 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) default net.minecraft.client.gui.Font
font()
default float
getAdvance
(int codePoint, ResolvedTextStyle style) default float
getWidth
(String text, ResolvedTextStyle style) net.minecraft.client.gui.GuiGraphics
default boolean
intersectsViewport
(LytRect bounds) Checks if the given rectangle intersects with the current viewport, after applying the active pose.default boolean
default MutableColor
mutableColor
(ColorValue symbolicColor) default void
default org.joml.Matrix3x2fStack
default void
pushScissor
(LytRect bounds) default void
renderFluid
(net.minecraft.world.level.material.Fluid fluid, int x, int y, int width, int height) default void
renderFluid
(net.neoforged.neoforge.fluids.FluidStack stack, int x, int y, int width, int height) default void
renderItem
(net.minecraft.world.item.ItemStack stack, int x, int y, float width, float height) void
renderItem
(net.minecraft.world.item.ItemStack stack, int x, int y, int z, float width, float height) default void
renderPanel
(LytRect bounds) default void
renderText
(String text, ResolvedTextStyle style, float x, float y) default void
renderTextCenteredIn
(String text, ResolvedTextStyle style, LytRect rect) int
resolveColor
(ColorValue ref) viewport()
-
Method Details
-
lightDarkMode
LightDarkMode lightDarkMode() -
isDarkMode
default boolean isDarkMode() -
guiGraphics
net.minecraft.client.gui.GuiGraphics guiGraphics() -
poseStack
default org.joml.Matrix3x2fStack poseStack() -
viewport
LytRect viewport() -
intersectsViewport
Checks if the given rectangle intersects with the current viewport, after applying the active pose. -
resolveColor
-
fillRect
void fillRect(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, LytRect rect, ColorValue topLeft, ColorValue topRight, ColorValue bottomRight, ColorValue bottomLeft) -
drawIcon
-
drawIcon
-
drawIcon
default void drawIcon(int x, int y, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, ColorValue color) -
fillIcon
-
fillIcon
-
fillIcon
-
fillIcon
-
fillIcon
default void fillIcon(int x, int y, int width, int height, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, ColorValue color) -
fillTexturedRect
default void fillTexturedRect(LytRect rect, net.minecraft.resources.ResourceLocation texture, ColorValue topLeft, ColorValue topRight, ColorValue bottomRight, ColorValue bottomLeft) -
fillTexturedRect
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) -
fillTexturedRect
-
fillTexturedRect
default void fillTexturedRect(LytRect rect, net.minecraft.resources.ResourceLocation textureId, ColorValue color) -
fillTexturedRect
-
fillTexturedRect
-
fillTexturedRect
default void fillTexturedRect(LytRect rect, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, ColorValue color) -
fillTriangle
void fillTriangle(net.minecraft.world.phys.Vec2 p1, net.minecraft.world.phys.Vec2 p2, net.minecraft.world.phys.Vec2 p3, ColorValue color) -
font
default net.minecraft.client.gui.Font font() -
getAdvance
-
getWidth
-
renderTextCenteredIn
-
renderText
-
fillRect
-
fillRect
-
fillRect
default void fillRect(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, LytRect rect, ColorValue color) -
fillRect
default void fillRect(LytRect rect, ColorValue topLeft, ColorValue topRight, ColorValue bottomRight, ColorValue bottomLeft) -
fillGradientVertical
-
fillGradientVertical
default void fillGradientVertical(int x, int y, int width, int height, ColorValue top, ColorValue bottom) -
fillGradientHorizontal
-
fillGradientHorizontal
default void fillGradientHorizontal(int x, int y, int width, int height, ColorValue left, ColorValue right) -
renderItem
default void renderItem(net.minecraft.world.item.ItemStack stack, int x, int y, float width, float height) -
renderFluid
default void renderFluid(net.minecraft.world.level.material.Fluid fluid, int x, int y, int width, int height) -
renderFluid
default void renderFluid(net.neoforged.neoforge.fluids.FluidStack stack, int x, int y, int width, int height) -
renderItem
void renderItem(net.minecraft.world.item.ItemStack stack, int x, int y, int z, float width, float height) -
renderPanel
-
pushScissor
-
popScissor
default void popScissor() -
mutableColor
-