Interface Registry<T extends net.kyori.adventure.key.Keyed>
- All Superinterfaces:
Iterable<T>
- All Known Subinterfaces:
ReloadableRegistry<T>
@NonExtendable
public interface Registry<T extends net.kyori.adventure.key.Keyed>
extends Iterable<T>
Read view of a registry. Iteration order is registration order (deterministic, ยง19).
Thread-safe once frozen.
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull Map<net.kyori.adventure.key.Key, net.kyori.adventure.key.Key> aliases()Old keys and the entry each one now means (seeWritableRegistry.alias(Key, Key)).booleancontains(@NotNull net.kyori.adventure.key.Key id) Whetherget(Key)findsid, as an entry or an alias.booleancontainsValue(T value) get(@NotNull net.kyori.adventure.key.Key id) default TgetOrThrow(@NotNull net.kyori.adventure.key.Key id) iterator()@NotNull Set<net.kyori.adventure.key.Key> keys()The keys of the entries; aliases are not included.owner(@NotNull net.kyori.adventure.key.Key id) The addon that registered the entry or the aliasid.default intsize()stream()@NotNull RegistryType<T> type()values()Methods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
type
-
get
-
getOrThrow
-
contains
boolean contains(@NotNull @NotNull net.kyori.adventure.key.Key id) Whetherget(Key)findsid, as an entry or an alias. -
containsValue
- Returns:
- whether this exact (reference-equal) object is registered
-
owner
-
keys
The keys of the entries; aliases are not included. -
aliases
Old keys and the entry each one now means (seeWritableRegistry.alias(Key, Key)). -
values
-
stream
-
size
default int size() -
iterator
-