Skip to main content

Module registry_data

Module registry_data 

Source
Expand description

Registry data required for the Configuration state.

The Minecraft client expects registry data for several registries before it will accept a FinishConfiguration packet. This module provides builders for all required registries:

  • minecraft:dimension_type — world properties (height, light)
  • minecraft:worldgen/biome — biome rendering (colors, sky, fog)
  • minecraft:damage_type — damage source definitions (49 entries)
  • minecraft:painting_variant — required since 1.21+
  • minecraft:wolf_variant — required since 1.21+
  • minecraft:chat_type — chat message formatting (chat + msg_command)
  • minecraft:trim_pattern — armor trim patterns
  • minecraft:trim_material — armor trim materials
  • minecraft:banner_pattern — banner pattern definitions
  • minecraft:enchantment — enchantment definitions
  • minecraft:jukebox_song — music disc definitions
  • minecraft:instrument — goat horn instrument definitions

Functions§

build_default_registries
Builds all required registry data packets for the Configuration state.
cached_registry_payloads
Returns the pre-encoded payloads of every default registry packet, suitable for direct write via a RawSlice-style wrapper.