Vanilla

A builder of something that is registered in a vanilla registry.

Inheritors

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 tags(vararg tags: RegistryEntrySet.Paper.Tag<API>)

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