codegen gen.go generates clientbound/serverbound packet header files and body files easily so they don't have to be manually written. Example To generate SpawnMob run go run gen.go < packets/SpawnMob. The files will be present in the out/ directory.