Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val entry: RegistryEntry.Nova<T>

The entry of the element being built.

Link copied to clipboard
abstract val tags: Provider<Set<RegistryEntrySet.Nova.Tag<T>>>

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

Functions

Link copied to clipboard
abstract fun build(): T

Builds the registry element.

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.Nova.Tag<T>)

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