RenderContext
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Renders a list of triangles.
Link copied to clipboard
Link copied to clipboard
public void drawComplexTexture(MyResourceLocation texture, float x, float y, float width, float height, Consumer<RenderContext.DrawTextureBuilder> block)
Link copied to clipboard
Link copied to clipboard
public abstract void drawGradientRect(int left, int top, int right, int bottom, int startColor, int endColor)
Link copied to clipboard
Link copied to clipboard
public void drawNinePatch(NinePatch<MyResourceLocation> patch, float x, float y, int width, int height)
Link copied to clipboard
public abstract void drawOnTop(Layer layer, RenderContext.ScissorBehaviour escapeScissors, Consumer<RenderContext> later)
draws more content that should be laid on top of other later render calls.
Link copied to clipboard
public void drawOpenCloseTriangle(boolean isOpen, float x, float y, float width, float height, int color)
Link copied to clipboard
public abstract void drawString(IFontRenderer fontRenderer, StructuredText text, int x, int y, int color, boolean shadow)
Link copied to clipboard
public void drawStringCenteredScaledMaxWidth(StructuredText text, IFontRenderer fr, float x, float y, boolean shadow, int length, int color)
Link copied to clipboard
public final static Unit drawStringCenteredScalingDownWithMaxWidth(StructuredText text, Int centerX, Int centerY, Int maxWidth, Int color, Boolean shadow, IFontRenderer fr)
Link copied to clipboard
public void drawStringScaledMaxWidth(StructuredText text, IFontRenderer fontRenderer, int x, int y, boolean shadow, int width, int color)
Link copied to clipboard
public void drawTexturedRect(MyResourceLocation texture, float x, float y, float width, float height)
Link copied to clipboard
public abstract void drawTexturedTintedRect(MyResourceLocation texture, float x, float y, float width, float height, float u1, float v1, float u2, float v2, int color, TextureFilter filter)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public abstract void invertedRect(float left, float top, float right, float bottom, int additiveColor)
Link copied to clipboard
Link copied to clipboard
Returns whether the control key is held down on Windows and Linux, and for macOS checks if the command key is held down.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
push a raw scissor rectangle.
Link copied to clipboard
push a scissor rectangle, clamped to the current scissor rectangle, relative to the current render position.
Link copied to clipboard
Must be called only by the implementor after all rendering is done.
Link copied to clipboard
public abstract void renderItemStack(IItemStack itemStack, int x, int y, @Nullable() @Nullable() StructuredText overlayText)
Link copied to clipboard