Tessellator

Matrix transforms for world rendering, in the spirit of ChatTriggers' Tessellator. Only valid inside a renderEntity / postRenderEntity trigger, where JIM binds pose to the entity's live pose stack (already positioned at the entity's origin).

Push, transform, draw — JIM auto-pops anything you leave on the stack when the entity finishes rendering, so an unmatched pushMatrix can never corrupt Minecraft's matrices.

Jim.register(Event.RENDER_ENTITY, (entity) => {
if (entity.isLocalPlayer()) { Tessellator.pushMatrix(); Tessellator.scale(2, 2, 2); }
});

Properties

Link copied to clipboard
var pose: PoseStack?

The pose stack for the entity currently rendering, or null outside a render trigger.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun rotate(angle: Double, x: Double, y: Double, z: Double)

Rotate angle degrees about the axis (x, y, z). The axis is normalised for you.

Link copied to clipboard
Link copied to clipboard