this is a minecraft modding thing. a codec is a way to encode and decode data — usually JSON or NBT (Named Binary Tag) — into Java objects and back.
Minecraft uses Mojang’s Codec
system from their com.mojang.serialization
package (introduced more prominently in Minecraft 1.16+) to make things like world generation, custom blocks, and configs easily serializable and data-driven.