TagBuilder

sealed interface TagBuilder<T : Keyed, E : RegistryEntry<T>, S : RegistryEntrySet<T>>

A builder for creating or modifying the entries of a tag in a pre-flattened state.

Inheritors

Types

Link copied to clipboard

TagBuilder specific to Nova registries.

Link copied to clipboard

TagBuilder specific to Paper registries.

Functions

Link copied to clipboard
open fun add(tag: S)

Adds the given tag to this tag.

open fun add(entries: Iterable<E>)
open fun add(entry: E, vararg entries: E)

Adds the given direct entries to the tag.

abstract fun add(tag: Provider<S>)

Adds the tags supplied by tag and tags to this tag.

abstract fun add(entries: Provider<Iterable<E>>)

Adds the direct entries supplied by entries to the tag.

open fun add(entry: Provider<E>, vararg entries: Provider<E>)

Adds the direct entries supplied by entry and entries to the tag.

Link copied to clipboard
open fun remove(tag: S)

Removes the given tag from this tag.

open fun remove(entries: Iterable<E>)
open fun remove(entry: E, vararg entries: E)

Removes the given direct entries from the tag.

abstract fun remove(tag: Provider<S>)

Removes the tags supplied by tag and tags from this tag.

abstract fun remove(entries: Provider<Iterable<E>>)

Removes the direct entries supplied by entries from the tag.

open fun remove(entry: Provider<E>, vararg entries: Provider<E>)

Removes the direct entries supplied by entry and entries from the tag.