Iirc there is like an event or something (on forge) where you can register code that can be called at specific point of the world rendering process, like before/after transparency etc…
You might want to look more into that rather than mixin into some functions
This conversation is on Discord · Reply there