Tessellator

object Tessellator

Functions

Link copied to clipboard
fun alphaFunc(func: Int, ref: Float): Tessellator
Link copied to clipboard
fun begin(drawMode: Int = 7, textured: Boolean = true): Tessellator

Begin drawing with the Tessellator with default draw mode of quads and textured

Link copied to clipboard
fun bindTexture(texture: Image): Tessellator

Binds a texture to the client for the Tessellator to use.

Link copied to clipboard
fun blendFunc(sourceFactor: Int, destFactor: Int): Tessellator
Link copied to clipboard
fun colorize(red: Float, green: Float, blue: Float, alpha: Float = 1.0f): Tessellator

Colorize the Tessellator.

Link copied to clipboard
fun deleteTexture(texture: Image): Tessellator
Link copied to clipboard
fun depthFunc(depthFunc: Int): Tessellator
Link copied to clipboard
fun depthMask(flagIn: Boolean): Tessellator
Link copied to clipboard
fun disableAlpha(): Tessellator
Link copied to clipboard
fun disableBlend(): Tessellator
Link copied to clipboard
fun disableDepth(): Tessellator
Link copied to clipboard
fun disableLighting(): Tessellator
Link copied to clipboard
fun disableTexture2D(): Tessellator
Link copied to clipboard
fun draw()

Finalizes and draws the Tessellator.

Link copied to clipboard
fun drawString(text: String, x: Float, y: Float, z: Float, color: Int = 0xffffffff.toInt(), renderBlackBox: Boolean = true, scale: Float = 1.0f, increase: Boolean = true)

Renders floating lines of text in the 3D world at a specific position.

Link copied to clipboard
fun enableAlpha(): Tessellator
Link copied to clipboard
fun enableBlend(): Tessellator
Link copied to clipboard
fun enableDepth(): Tessellator
Link copied to clipboard
fun enableLighting(): Tessellator
Link copied to clipboard
fun enableTexture2D(): Tessellator
Link copied to clipboard
fun getRenderPos(x: Float, y: Float, z: Float): Vector3f

Gets a fixed render position from x, y, and z inputs adjusted with partial ticks

Link copied to clipboard
fun popMatrix(): Tessellator
Link copied to clipboard
fun pos(x: Float, y: Float, z: Float): Tessellator

Sets a new vertex in the Tessellator.

Link copied to clipboard
fun pushMatrix(): Tessellator
Link copied to clipboard
fun rotate(angle: Float, x: Float, y: Float, z: Float): Tessellator

Rotates the Tessellator in 3d space. Similar to com.chattriggers.ctjs.minecraft.libs.renderer.Renderer.rotate

Link copied to clipboard
fun scale(x: Float, y: Float = x, z: Float = x): Tessellator

Scales the Tessellator in 3d space. Similar to com.chattriggers.ctjs.minecraft.libs.renderer.Renderer.scale

Link copied to clipboard
fun tex(u: Float, v: Float): Tessellator

Sets the texture location on the last defined vertex. Use directly after using Tessellator.pos

Link copied to clipboard
fun translate(x: Float, y: Float, z: Float): Tessellator

Translates the Tessellator in 3d space. Similar to com.chattriggers.ctjs.minecraft.libs.renderer.Renderer.translate

Link copied to clipboard
fun tryBlendFuncSeparate(sourceFactor: Int, destFactor: Int, sourceFactorAlpha: Int, destFactorAlpha: Int): Tessellator

Properties

Link copied to clipboard
var partialTicks: Float = 0.0f

Sources

Link copied to clipboard