Package io.papermc.paper.registry.set
Interface RegistryValueSet<T>
- Type Parameters:
T- registry value type
- All Superinterfaces:
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. Created via
RegistrySet.valueSet(io.papermc.paper.registry.RegistryKey, Iterable) or
in the context of a RegistryBuilder,
there are methods to create them like DialogRegistryEntry.Builder.registryValueSet().-
Method Summary
Methods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface io.papermc.paper.registry.set.RegistrySet
isEmpty, registryKey
-
Method Details
-
size
default int size()Description copied from interface:RegistrySetGet the size of this set.- Specified by:
sizein interfaceRegistrySet<T>- Returns:
- the size
-
values
@Unmodifiable Collection<T> values()Get the collection of values in this direct set.- Returns:
- the values
-
iterator
-