RerunnableVanilla

A Vanilla builder that can be reset and re-run. How updates are propagated to the elements is left to the implementation. prepareBuild is called again on re-run, but build is not. Intended for non-reloadable vanilla registries.

Properties

Link copied to clipboard

The entry of the element being built.

Link copied to clipboard
abstract val tags: Provider<Set<RegistryEntrySet.Paper.Tag<API>>>

A reloadable set of tags that the element built by this builder belongs in. Can be updated at any time (independently of registry re-running).

Functions

Link copied to clipboard
abstract fun build(lookup: RegistryOps.RegistryInfoLookup): NMS

Builds the registry element. Can use lookup to get holders for other registry elements.

Link copied to clipboard
open fun prepareBuild()

Prepares the builder for build. This function is called after the builder has been configured, but before the build function is called. This allows for e.g. queuing asset generation in resource pack tasks, which will be done before the build function is called.

Link copied to clipboard
abstract fun reset()

Resets the builder to its initial state. Called immediately before re-running configuration on the builder.

Link copied to clipboard
abstract fun tags(vararg tags: RegistryEntrySet.Paper.Tag<API>)

Adds the entry of the element being build to the given tags.