public class RegistrationOptions
extends xyz.srnyx.javautilities.parents.Stringable
| Modifier and Type | Class and Description |
|---|---|
static class |
RegistrationOptions.AutomaticRegistration
The automatic registration options
|
| Modifier and Type | Field and Description |
|---|---|
@NotNull RegistrationOptions.AutomaticRegistration |
automaticRegistration
The
RegistrationOptions.AutomaticRegistration options to automatically register Registrables |
@NotNull java.util.function.Supplier<java.lang.Object> |
papiExpansionToRegister
|
@NotNull java.util.Set<Registrable> |
toRegister
|
| Constructor and Description |
|---|
RegistrationOptions()
Constructs a new
RegistrationOptions instance with default values |
| Modifier and Type | Method and Description |
|---|---|
@NotNull RegistrationOptions |
automaticRegistration(@NotNull java.util.function.Consumer<RegistrationOptions.AutomaticRegistration> automaticRegistration)
Sets the
automaticRegistration using the specified Consumer |
@NotNull RegistrationOptions |
automaticRegistration(@NotNull RegistrationOptions.AutomaticRegistration automaticRegistration)
Sets the
automaticRegistration |
@Nullable me.clip.placeholderapi.expansion.PlaceholderExpansion |
getPapiExpansionToRegister()
Casts the
papiExpansionToRegister to a PlaceholderExpansion and returns it |
static @NotNull RegistrationOptions |
load(@NotNull org.bukkit.configuration.ConfigurationSection section)
Loads the options from the specified
ConfigurationSection |
@NotNull RegistrationOptions |
papiExpansionToRegister(@NotNull java.util.function.Supplier<java.lang.Object> papiExpansionToRegister)
Sets the
papiExpansionToRegister |
@NotNull RegistrationOptions |
toRegister(@NotNull AnnoyingPlugin plugin,
java.lang.Class<? extends Registrable>... toRegister)
Adds the specified
Registrables to toRegister |
@NotNull RegistrationOptions |
toRegister(@NotNull AnnoyingPlugin plugin,
@NotNull java.util.Collection<java.lang.Class<? extends Registrable>> toRegister)
Adds the specified
Registrables to toRegister |
@NotNull RegistrationOptions |
toRegister(@NotNull java.util.Collection<Registrable> toRegister)
Adds the specified
Registrables to toRegister |
@NotNull RegistrationOptions |
toRegister(Registrable... toRegister)
Adds the specified
Registrables to toRegister |
@NotNull public @NotNull RegistrationOptions.AutomaticRegistration automaticRegistration
RegistrationOptions.AutomaticRegistration options to automatically register Registrables@NotNull public @NotNull java.util.Set<Registrable> toRegister
@NotNull public @NotNull java.util.function.Supplier<java.lang.Object> papiExpansionToRegister
public RegistrationOptions()
RegistrationOptions instance with default values@NotNull public static @NotNull RegistrationOptions load(@NotNull @NotNull org.bukkit.configuration.ConfigurationSection section)
ConfigurationSectionsection - the section to load the options from@Nullable public @Nullable me.clip.placeholderapi.expansion.PlaceholderExpansion getPapiExpansionToRegister()
papiExpansionToRegister to a PlaceholderExpansion and returns itpapiExpansionToRegister as a PlaceholderExpansion or null if it is not a PlaceholderExpansion@NotNull public @NotNull RegistrationOptions automaticRegistration(@NotNull @NotNull RegistrationOptions.AutomaticRegistration automaticRegistration)
automaticRegistrationautomaticRegistration - the automatic registrationRegistrationOptions instance for chaining@NotNull public @NotNull RegistrationOptions automaticRegistration(@NotNull @NotNull java.util.function.Consumer<RegistrationOptions.AutomaticRegistration> automaticRegistration)
automaticRegistration using the specified ConsumerautomaticRegistration - the automatic registrationRegistrationOptions instance for chaining@NotNull public @NotNull RegistrationOptions toRegister(@NotNull @NotNull java.util.Collection<Registrable> toRegister)
Registrables to toRegistertoRegister - the Registrables to addRegistrationOptions instance for chaining@NotNull public @NotNull RegistrationOptions toRegister(@NotNull Registrable... toRegister)
Registrables to toRegistertoRegister - the Registrables to addRegistrationOptions instance for chaining@NotNull public @NotNull RegistrationOptions toRegister(@NotNull @NotNull AnnoyingPlugin plugin, @NotNull @NotNull java.util.Collection<java.lang.Class<? extends Registrable>> toRegister)
Registrables to toRegisterplugin - the plugin instancetoRegister - the Registrables to addRegistrationOptions instance for chaining@NotNull @SafeVarargs public final @NotNull RegistrationOptions toRegister(@NotNull @NotNull AnnoyingPlugin plugin, @NotNull java.lang.Class<? extends Registrable>... toRegister)
Registrables to toRegisterplugin - the plugin instancetoRegister - the Registrables to addRegistrationOptions instance for chaining@NotNull public @NotNull RegistrationOptions papiExpansionToRegister(@NotNull @NotNull java.util.function.Supplier<java.lang.Object> papiExpansionToRegister)
papiExpansionToRegisterpapiExpansionToRegister - the PAPI expansion to registerRegistrationOptions instance for chaining