Class RegistriesHolder.Builder

java.lang.Object
net.mathias2246.buildmc.util.registry.RegistriesHolder.Builder
Enclosing class:
RegistriesHolder

public static class RegistriesHolder.Builder extends Object
A Builder class used to create new instances of RegistriesHolders.
  • 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 existing Registry instance to the holder instance that this Builder will build.
    • build

      @Contract("-> new") @NotNull public @NotNull RegistriesHolder build()
      Returns:
      a new RegistriesHolder with all configured values