TagSet

interface TagSet<T> : Iterable<T>

A set of tags from a specific registry for a specific tag key.

Functions

Link copied to clipboard
abstract fun contains(value: T): Boolean

Checks if this tag set contains the given value.

Link copied to clipboard
open fun forEach(p0: Consumer<in T>)
Link copied to clipboard
abstract fun get(index: Int): T

Gets the value at the given index in this tag set.

Link copied to clipboard
abstract operator fun iterator(): Iterator<T>
Link copied to clipboard
abstract fun size(): Int

Gets the size of this tag set.

Link copied to clipboard
Link copied to clipboard
abstract fun stream(): Stream<T>

Creates a new stream of the values in this tag set.

Properties

Link copied to clipboard
@get:JvmName(name = "key")
abstract val key: TagKey<T>

The key that this tag set is mapped to.

Link copied to clipboard
@get:JvmName(name = "registry")
abstract val registry: Registry<T>

The registry that contains this tag set.