RenderContext

Types

Link copied to clipboard

Functions

Link copied to clipboard
open fun bindTexture(@NotNull texture: @NotNull MyResourceLocation)
Link copied to clipboard
abstract fun clearScissor()
Link copied to clipboard
abstract fun color(r: Float, g: Float, b: Float, a: Float)
Link copied to clipboard
abstract fun disableDepth()
Link copied to clipboard
abstract fun disableScissor()
Link copied to clipboard
abstract fun doDrawTooltip()
Link copied to clipboard
abstract fun drawColoredRect(left: Float, top: Float, right: Float, bottom: Float, color: Int)
Link copied to clipboard
open fun drawDarkRect(x: Int, y: Int, width: Int, height: Int)
abstract fun drawDarkRect(x: Int, y: Int, width: Int, height: Int, shadow: Boolean)
Link copied to clipboard
abstract fun drawGradientRect(zLevel: Int, 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(@NotNull patch: @NotNull NinePatch<@NotNull MyResourceLocation>, x: Float, y: Float, width: Int, height: Int)
Link copied to clipboard
open fun drawOpenCloseTriangle(isOpen: Boolean, x: Float, y: Float, width: Float, height: Float)
Link copied to clipboard
abstract fun drawString(@NotNull fontRenderer: @NotNull IFontRenderer, @NotNull text: @NotNull String, x: Int, y: Int, color: Int, shadow: Boolean): Int
Link copied to clipboard
open fun drawStringCenteredScaledMaxWidth(@NotNull text: @NotNull String, @NotNull fr: @NotNull IFontRenderer, x: Float, y: Float, shadow: Boolean, length: Int, color: Int)
fun RenderContext.drawStringCenteredScalingDownWithMaxWidth(text: String, centerX: Int, centerY: Int, maxWidth: Int, color: Int, shadow: Boolean = false, fr: IFontRenderer = minecraft.defaultFontRenderer)
Link copied to clipboard
open fun drawStringScaledMaxWidth(@NotNull text: @NotNull String, @NotNull fontRenderer: @NotNull IFontRenderer, x: Int, y: Int, shadow: Boolean, width: Int, color: Int)
Link copied to clipboard
open fun drawTexturedRect(x: Float, y: Float, width: Float, height: Float)
abstract fun drawTexturedRect(x: Float, y: Float, width: Float, height: Float, u1: Float, v1: Float, u2: Float, v2: Float)
Link copied to clipboard
abstract fun drawTriangles(coordinates: Array<Float>)
Link copied to clipboard
open fun drawVerticalLine(x: Int, startY: Int, endY: Int, color: Int)
Link copied to clipboard
abstract fun enableDepth()
Link copied to clipboard
@NotNull
abstract fun generateDynamicTexture(@NotNull image: @NotNull BufferedImage): @NotNull DynamicTextureReference
Dynamically load a buffered image into a minecraft bindable texture.
Link copied to clipboard
@NotNull
open fun getMinecraft(): @NotNull IMinecraft
Link copied to clipboard
abstract fun invertedRect(left: Float, top: Float, right: Float, bottom: Float)
Link copied to clipboard
open fun isCtrlDown(): Boolean
Link copied to clipboard
abstract fun isKeyboardKeyDown(keyboardKey: Int): Boolean
Link copied to clipboard
abstract fun isMouseButtonDown(mouseButton: Int): Boolean
Link copied to clipboard
open fun isShiftDown(): Boolean
Link copied to clipboard
abstract fun popMatrix()
Link copied to clipboard
abstract fun popScissor()
Link copied to clipboard
abstract fun pushMatrix()
Link copied to clipboard
abstract fun pushScissor(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
abstract fun refreshScissor()
Link copied to clipboard
abstract fun renderItemStack(@NotNull itemStack: @NotNull IItemStack, x: Int, y: Int, @Nullable overlayText: @Nullable String)
Link copied to clipboard
abstract fun scale(x: Float, y: Float, z: Float)
Link copied to clipboard
abstract fun scheduleDrawTooltip(@NotNull tooltipLines: @NotNull List<String>)
Link copied to clipboard
abstract fun setTextureMinMagFilter(@NotNull filter: @NotNull RenderContext.TextureFilter)
Set the texture min and mag filter which dictate how an image is upscaled / interpolated.
Link copied to clipboard
abstract fun translate(x: Float, y: Float, z: Float)