Fabric API

Fabric API

106M Downloads

Add a hook to force chunk remesh

Technici4n opened this issue ยท 1 comments

commented

This simple addition would be very useful for block entites that require a remesh when some internal data changes.

It would be adding something like WorldRenderExtensions.remeshChunk(ClientWorld world, BlockPos pos, boolean important), and it could be added in fabric-rendering-v1.

commented

This is already doable without using mixins or other hooks. MI uses this for example:

    /**
     * Force chunk remesh.
     */
    public static void forceChunkRemesh(ClientWorld world, BlockPos pos) {
        world.updateListeners(pos, null, null, 0);
    }