Package guideme.render
Interface RenderContext
- All Known Implementing Classes:
SimpleRenderContext
public interface RenderContext
-
Method Summary
Modifier and TypeMethodDescriptiondefault net.minecraft.client.renderer.MultiBufferSource.BufferSource
default 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
endBatch
(net.minecraft.client.renderer.MultiBufferSource.BufferSource batch) 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
fillRect
(int x, int y, int width, int height, ColorValue color) default void
fillRect
(LytRect rect, ColorValue color) 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.AbstractTexture texture) default void
fillTexturedRect
(LytRect rect, net.minecraft.client.renderer.texture.AbstractTexture texture, ColorValue color) default void
fillTexturedRect
(LytRect rect, net.minecraft.client.renderer.texture.AbstractTexture texture, ColorValue topLeft, ColorValue topRight, ColorValue bottomRight, ColorValue bottomLeft) void
fillTexturedRect
(LytRect rect, net.minecraft.client.renderer.texture.AbstractTexture texture, ColorValue topLeft, ColorValue topRight, ColorValue bottomRight, ColorValue bottomLeft, float u0, float v0, float u1, float v1) 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) 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
default MutableColor
mutableColor
(ColorValue symbolicColor) default void
default com.mojang.blaze3d.vertex.PoseStack
default void
pushScissor
(LytRect bounds) default void
renderFluid
(net.minecraft.world.level.material.Fluid fluid, int x, int y, int z, int width, int height) default void
renderFluid
(net.neoforged.neoforge.fluids.FluidStack stack, int x, int y, int z, 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) default void
renderTextInBatch
(String text, ResolvedTextStyle style, float x, float y, net.minecraft.client.renderer.MultiBufferSource buffers) int
resolveColor
(ColorValue ref) viewport()
-
Method Details
-
lightDarkMode
LightDarkMode lightDarkMode() -
isDarkMode
default boolean isDarkMode() -
guiGraphics
net.minecraft.client.gui.GuiGraphics guiGraphics() -
poseStack
default com.mojang.blaze3d.vertex.PoseStack poseStack() -
viewport
LytRect viewport() -
resolveColor
-
fillRect
void fillRect(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
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.client.renderer.texture.AbstractTexture texture, ColorValue topLeft, ColorValue topRight, ColorValue bottomRight, ColorValue bottomLeft) -
fillTexturedRect
void fillTexturedRect(LytRect rect, net.minecraft.client.renderer.texture.AbstractTexture texture, 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.client.renderer.texture.AbstractTexture texture) -
fillTexturedRect
default void fillTexturedRect(LytRect rect, net.minecraft.client.renderer.texture.AbstractTexture texture, ColorValue color) -
fillTexturedRect
-
fillTexturedRect
default void fillTexturedRect(LytRect rect, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, ColorValue color) -
fillTexturedRect
-
fillTexturedRect
default void fillTexturedRect(LytRect rect, net.minecraft.resources.ResourceLocation textureId, 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
-
renderTextInBatch
default void renderTextInBatch(String text, ResolvedTextStyle style, float x, float y, net.minecraft.client.renderer.MultiBufferSource buffers) -
fillRect
-
fillRect
-
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) -
beginBatch
default net.minecraft.client.renderer.MultiBufferSource.BufferSource beginBatch() -
endBatch
default void endBatch(net.minecraft.client.renderer.MultiBufferSource.BufferSource batch) -
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 z, int width, int height) -
renderFluid
default void renderFluid(net.neoforged.neoforge.fluids.FluidStack stack, int x, int y, int z, 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
-