Class RegistriesHolder.Builder
java.lang.Object
net.mathias2246.buildmc.util.registry.RegistriesHolder.Builder
- Enclosing class:
RegistriesHolder
A Builder class used to create new instances of
RegistriesHolders.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull RegistriesHolder.BuilderaddRegistry(@NotNull String key, @NotNull org.bukkit.Registry<? extends org.bukkit.Keyed> registry) Adds an existingRegistryinstance to the holder instance that thisBuilderwill build.@NotNull RegistriesHolderbuild()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addRegistry
@Contract("_, _ -> this") @NotNull public @NotNull RegistriesHolder.Builder addRegistry(@NotNull @NotNull String key, @NotNull @NotNull org.bukkit.Registry<? extends org.bukkit.Keyed> registry) Adds an existingRegistryinstance to the holder instance that thisBuilderwill build. -
build
- Returns:
- a new
RegistriesHolderwith all configured values
-