Interface RegistryValueSet<T>

Type Parameters:
T - registry value type
All Superinterfaces:
Iterable<T>, RegistrySet<T>

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. 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 Details

    • size

      default int size()
      Description copied from interface: RegistrySet
      Get the size of this set.
      Specified by:
      size in interface RegistrySet<T>
      Returns:
      the size
    • values

      @Unmodifiable Collection<T> values()
      Get the collection of values in this direct set.
      Returns:
      the values
    • iterator

      default Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T>