Package io.papermc.paper.registry.set
Interface RegistryValueSetBuilder<API,ENTRY_BUILDER extends RegistryBuilder<API>>
- Type Parameters:
API- the API typeENTRY_BUILDER- the type of the entry builder,
@NonExtendable
public interface RegistryValueSetBuilder<API,ENTRY_BUILDER extends RegistryBuilder<API>>
A builder for a
RegistryValueSet.-
Method Summary
Modifier and TypeMethodDescriptionadd(Consumer<RegistryBuilderFactory<API, ? extends ENTRY_BUILDER>> builder) Adds a value to the registry value set.build()Builds theRegistryValueSet.
-
Method Details
-
add
RegistryValueSetBuilder<API,ENTRY_BUILDER> add(Consumer<RegistryBuilderFactory<API, ? extends ENTRY_BUILDER>> builder) Adds a value to the registry value set.- Parameters:
builder- the builder for the value to add- Returns:
- this builder for chaining
-
build
RegistryValueSet<API> build()Builds theRegistryValueSet.- Returns:
- the built registry value set
-