Package io.papermc.paper.registry.set
Interface RegistryValueSet<T>
- Type Parameters:
T
- registry value type
- All Superinterfaces:
Iterable<T>
,RegistrySet<T>
@Experimental
@NullMarked
public sealed interface RegistryValueSet<T>
extends Iterable<T>, RegistrySet<T>
A collection of anonymous values relating to a registry. These
are values of the same type as the registry, but will not be found
in the registry, hence, anonymous.
-
Method Summary
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface io.papermc.paper.registry.set.RegistrySet
isEmpty, registryKey
-
Method Details
-
size
default int size()Description copied from interface:RegistrySet
Get the size of this set.- Specified by:
size
in interfaceRegistrySet<T>
- Returns:
- the size
-
values
@Unmodifiable Collection<T> values()Get the collection of values in this direct set.- Returns:
- the values
-
iterator
-