RenderContext
Types
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
open fun drawComplexTexture(texture: MyResourceLocation, x: Float, y: Float, width: Float, height: Float, block: Consumer<RenderContext.DrawTextureBuilder>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun drawNinePatch(patch: NinePatch<MyResourceLocation>, x: Float, y: Float, width: Int, height: Int)
Link copied to clipboard
abstract fun drawOnTop(layer: Layer, escapeScissors: RenderContext.ScissorBehaviour, later: Consumer<RenderContext>)
draws more content that should be laid on top of other later render calls.
Link copied to clipboard
Link copied to clipboard
abstract fun drawString(fontRenderer: IFontRenderer, text: StructuredText, x: Int, y: Int, color: Int, shadow: Boolean)
Link copied to clipboard
open fun drawStringCenteredScaledMaxWidth(text: StructuredText, fr: IFontRenderer, x: Float, y: Float, shadow: Boolean, length: Int, color: Int)
Link copied to clipboard
open fun drawStringScaledMaxWidth(text: StructuredText, fontRenderer: IFontRenderer, x: Int, y: Int, shadow: Boolean, width: Int, color: Int)
Link copied to clipboard
open fun drawTexturedRect(texture: MyResourceLocation, x: Float, y: Float, width: Float, height: Float)
Link copied to clipboard
abstract fun drawTexturedTintedRect(texture: MyResourceLocation, x: Float, y: Float, width: Float, height: Float, u1: Float, v1: Float, u2: Float, v2: Float, color: Int, filter: TextureFilter)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
abstract fun renderItemStack(itemStack: IItemStack, x: Int, y: Int, @Nullable overlayText: @Nullable StructuredText)
Link copied to clipboard
Inherited functions
Link copied to clipboard
fun RenderContext.drawStringCenteredScalingDownWithMaxWidth(text: StructuredText, centerX: Int, centerY: Int, maxWidth: Int, color: Int, shadow: Boolean = false, fr: IFontRenderer = minecraft.defaultFontRenderer)