StaticinstanceGet the current global DatapackDeploymentSpecRegistry instance registered in the root container
Create a fresh (lazily instantiated) spec instance for every registered spec, paired with its filter.
Each call constructs new instances for type-registered specs -- the registry does not cache them. Callers that invoke spec hooks repeatedly (e.g. across deployment events) should materialize the result once and reuse it so specs holding per-deployment state initialize a single time.
Iterable of filter/spec pairs
Register a spec with 1 or more hooks to be executed in for the datapacks of the specified type in this deployment.
filter that determines when this datapack is applied
Object matching the DatapackDeploymentSpec-shape
Register an individual spec function to be executed in for the datapacks of the specified type in this deployment.
type of the Datapack
name of the hook function
function executed
StaticregisterRegister a spec with 1 or more hooks to be executed in for the datapacks of the specified type in this deployment.
filter that determines when this datapack is applied
Object matching the DatapackDeploymentSpec-shape
StaticregisterRegister an individual spec function to be executed in for the datapacks of the specified type in this deployment.
type of the Datapack
name of the hook function
function executed
Get the number of specs registered in this registry.