Skip to content

Custom Codec

George edited this page Jan 15, 2026 · 1 revision

Flaps works by communicating a GameTime value - one of the few values that shaders can read - to a resource pack. This is limited to 24,000 meaning there's a very limiting amount of data we can communicate with shaders. Flaps' codec aims to take a middle ground to allow most uecases, but it may be too limiting in some cases and you may want to handle data transfer yourself. If that's the case, then you can use:

Flaps.getInstance().setCustomTimeProvider((player, state, long) -> {});

to communicate your own value to the shader. Note that this is an advanced feature and shouldn't be used unless you know what you're doing.

Clone this wiki locally