MoulConfigRenderContext

@NullMarked
open class MoulConfigRenderContext : RenderContext

Constructors

Link copied to clipboard
constructor(drawContext: DrawContext)

Functions

Link copied to clipboard
open fun assertNoScissors()
Link copied to clipboard
open fun clearScissor()
Link copied to clipboard
open fun drawColoredRect(left: Float, top: Float, right: Float, bottom: Float, color: Int)
Link copied to clipboard
open fun drawColoredTriangles(colour: Int, coordinates: Array<Float>)
Link copied to clipboard
open fun drawColouredQuads(color: Int, coordinates: Array<Float>)
Link copied to clipboard
Link copied to clipboard
open fun drawDarkRect(x: Int, y: Int, width: Int, height: Int)
open fun drawDarkRect(x: Int, y: Int, width: Int, height: Int, shadow: Boolean)
Link copied to clipboard
open fun drawGradientRect(left: Int, top: Int, right: Int, bottom: Int, startColor: Int, endColor: Int)
Link copied to clipboard
open fun drawHorizontalLine(y: Int, startX: Int, endX: Int, color: Int)
Link copied to clipboard
open fun drawNinePatch(patch: NinePatch<MyResourceLocation>, x: Float, y: Float, width: Int, height: Int)
Link copied to clipboard
open fun drawOnTop(layer: Layer, escapeScissors: RenderContext.ScissorBehaviour, later: Consumer<RenderContext>)
open fun drawOnTop(layer: Layer, escapeScissors: RenderContext.ScissorBehaviour, later: Consumer<RenderContext>)
Link copied to clipboard
open fun drawOpenCloseTriangle(isOpen: Boolean, x: Float, y: Float, width: Float, height: Float, color: Int)
Link copied to clipboard
open 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
open 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
open fun drawTooltipNow(x: Int, y: Int, tooltipLines: List<StructuredText>)
Link copied to clipboard
open fun drawVerticalLine(x: Int, startY: Int, endY: Int, color: Int)
Link copied to clipboard
Link copied to clipboard
open fun invertedRect(left: Float, top: Float, right: Float, bottom: Float, additiveColor: Int)
Link copied to clipboard
open fun isCmdDown(): Boolean
Link copied to clipboard
open fun isKeyboardKeyDown(keyboardKey: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isMouseButtonDown(mouseButton: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isShiftDown(): Boolean
Link copied to clipboard
open fun popMatrix()
Link copied to clipboard
open fun popScissor()
Link copied to clipboard
open fun pushMatrix()
Link copied to clipboard
open fun pushRawScissor(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
open fun pushScissor(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
Link copied to clipboard
open fun renderItemStack(itemStack: IItemStack, x: Int, y: Int, @Nullable overlayText: @Nullable StructuredText)
Link copied to clipboard
open fun scale(x: Float, y: Float)
Link copied to clipboard
open fun scheduleDrawTooltip(x: Int, y: Int, tooltipLines: List<StructuredText>)
Link copied to clipboard
open fun translate(x: Float, y: Float)