Package guideme.render
Interface RenderContext
- All Known Implementing Classes:
SimpleRenderContext
public interface RenderContext
-
Method Summary
Modifier and TypeMethodDescriptiondefault net.minecraft.client.renderer.MultiBufferSource.BufferSourcedefault 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 voidendBatch(net.minecraft.client.renderer.MultiBufferSource.BufferSource batch) 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(LytRect rect, ColorValue color) 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.AbstractTexture texture) default voidfillTexturedRect(LytRect rect, net.minecraft.client.renderer.texture.AbstractTexture texture, ColorValue color) default voidfillTexturedRect(LytRect rect, net.minecraft.client.renderer.texture.AbstractTexture texture, ColorValue topLeft, ColorValue topRight, ColorValue bottomRight, ColorValue bottomLeft) voidfillTexturedRect(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 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) 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 com.mojang.blaze3d.vertex.PoseStackdefault voidpushScissor(LytRect bounds) default voidrenderFluid(net.minecraft.world.level.material.Fluid fluid, int x, int y, int z, int width, int height) default voidrenderFluid(net.minecraftforge.fluids.FluidStack stack, int x, int y, int z, 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) default voidrenderTextInBatch(String text, ResolvedTextStyle style, float x, float y, net.minecraft.client.renderer.MultiBufferSource buffers) intresolveColor(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() -
intersectsViewport
Checks if the given rectangle intersects with the current viewport, after applying the active pose. -
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
-
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.minecraftforge.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
-