RegistryBase

AvM Staff mod base registration utility. This is not to be confused with Minecraft registries.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val keys: Set<TKey>

Gets all the registered keys in this registry.

Functions

Link copied to clipboard
operator fun contains(key: TKey): Boolean

Checks if the given key is present in the registry

Link copied to clipboard
operator fun get(key: TKey): TValue

Gets the value associated with the given key or throws an exception, if the key is not present in this registry.

Link copied to clipboard
open operator override fun iterator(): Iterator<Map.Entry<TKey, TValue>>
Link copied to clipboard
open fun register(key: TKey, value: TValue)

Registers an entry to this registry.

Link copied to clipboard
open fun validateEntry(key: TKey, value: TValue)

Validates an entry to be registered. Throws an exception, if the entry is invalid.

Inherited functions

Link copied to clipboard
open fun forEach(p0: Consumer<in Map.Entry<TKey, TValue>>)
Link copied to clipboard