ParserContext
What argument types know about the version being built.
Properties
Section titled “Properties”packFormat
Section titled “packFormat”packFormat:
number
Data pack format (major), e.g. 61 for 1.21.4. Use this for version checks.
version
Section titled “version”version:
string
Minecraft version id, e.g. “1.21.4”.
Methods
Section titled “Methods”hasRegistry()
Section titled “hasRegistry()”hasRegistry(
registry):boolean
True when the registry (e.g. “minecraft:block”) has generated id unions (codegen only).
Parameters
Section titled “Parameters”registry
Section titled “registry”string
Returns
Section titled “Returns”boolean
registryIds()
Section titled “registryIds()”registryIds(
registry):string[]
Some ids of a registry from registries.json, for examples (codegen/probe only).
Parameters
Section titled “Parameters”registry
Section titled “registry”string
Returns
Section titled “Returns”string[]