Package guideme.render
Interface RenderContext
- All Known Implementing Classes:
SimpleRenderContext
public interface RenderContext
-
Method Summary
Modifier and TypeMethodDescriptiondefault voiddefault voiddrawIcon(int x, int y, GuiSprite guiSprite, ColorValue color) default voiddrawIcon(int x, int y, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, ColorValue color) default voidfillGradientHorizontal(int x, int y, int width, int height, ColorValue left, ColorValue right) default voidfillGradientHorizontal(LytRect rect, ColorValue left, ColorValue right) default voidfillGradientVertical(int x, int y, int width, int height, ColorValue top, ColorValue bottom) default voidfillGradientVertical(LytRect rect, ColorValue top, ColorValue bottom) default voiddefault voidfillIcon(int x, int y, int width, int height, GuiSprite guiSprite, ColorValue color) default voidfillIcon(int x, int y, int width, int height, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, ColorValue color) default voiddefault voidfillIcon(LytRect bounds, GuiSprite guiSprite, ColorValue color) default voidfillRect(int x, int y, int width, int height, ColorValue color) default voidfillRect(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, LytRect rect, ColorValue color) voidfillRect(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, LytRect rect, ColorValue topLeft, ColorValue topRight, ColorValue bottomRight, ColorValue bottomLeft) default voidfillRect(LytRect rect, ColorValue color) default voidfillRect(LytRect rect, ColorValue topLeft, ColorValue topRight, ColorValue bottomRight, ColorValue bottomLeft) default voidfillTexturedRect(LytRect rect, GuidePageTexture texture) default voidfillTexturedRect(LytRect rect, GuidePageTexture texture, ColorValue color) default voidfillTexturedRect(LytRect rect, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, ColorValue color) default voidfillTexturedRect(LytRect rect, net.minecraft.resources.ResourceLocation textureId) default voidfillTexturedRect(LytRect rect, net.minecraft.resources.ResourceLocation textureId, ColorValue color) default voidfillTexturedRect(LytRect rect, net.minecraft.resources.ResourceLocation texture, ColorValue topLeft, ColorValue topRight, ColorValue bottomRight, ColorValue bottomLeft) voidfillTexturedRect(LytRect rect, net.minecraft.resources.ResourceLocation textureId, ColorValue topLeft, ColorValue topRight, ColorValue bottomRight, ColorValue bottomLeft, float u0, float v0, float u1, float v1) voidfillTriangle(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.Fontfont()default floatgetAdvance(int codePoint, ResolvedTextStyle style) default floatgetWidth(String text, ResolvedTextStyle style) net.minecraft.client.gui.GuiGraphicsdefault booleanintersectsViewport(LytRect bounds) Checks if the given rectangle intersects with the current viewport, after applying the active pose.default booleandefault MutableColormutableColor(ColorValue symbolicColor) default voiddefault org.joml.Matrix3x2fStackdefault voidpushScissor(LytRect bounds) default voidrenderFluid(net.minecraft.world.level.material.Fluid fluid, int x, int y, int width, int height) default voidrenderFluid(net.neoforged.neoforge.fluids.FluidStack stack, int x, int y, int width, int height) default voidrenderItem(net.minecraft.world.item.ItemStack stack, int x, int y, float width, float height) voidrenderItem(net.minecraft.world.item.ItemStack stack, int x, int y, int z, float width, float height) default voidrenderPanel(LytRect bounds) default voidrenderText(String text, ResolvedTextStyle style, float x, float y) default voidrenderTextCenteredIn(String text, ResolvedTextStyle style, LytRect rect) intresolveColor(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
-