JimRenderHooks

Bridge between the entity-render mixin and the engine. Called on the render thread (which is the JS thread), once before and once after each entity model is submitted, with the live PoseStack.

The renderEntity callback runs with Tessellator bound to pose, so a script may push a scale/rotation that transforms the model. Anything left on the stack is auto-popped after postRenderEntity so a buggy or conditional script can never unbalance Minecraft's pose stack.

Functions

Link copied to clipboard
fun onPostRenderEntity(state: EntityRenderState, pose: PoseStack)
Link copied to clipboard
fun onRenderEntity(state: EntityRenderState, pose: PoseStack)