Package xyz.srnyx.annoyingapi.options
Class AnnoyingOptions
java.lang.Object
xyz.srnyx.javautilities.parents.Stringable
xyz.srnyx.annoyingapi.options.AnnoyingOptions
public class AnnoyingOptions
extends xyz.srnyx.javautilities.parents.Stringable
Represents the options for the API
-
Field Summary
FieldsModifier and TypeFieldDescription@NotNull DataOptions@NotNull PluginOptions@NotNull RegistrationOptions@NotNull StatsOptions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull AnnoyingOptionsdataOptions(@NotNull Consumer<DataOptions> consumer) SetsdataOptions@NotNull AnnoyingOptionsdataOptions(@NotNull DataOptions dataOptions) SetsdataOptionsstatic @NotNull AnnoyingOptionsload(@Nullable InputStream inputStream) Loads the options from the specifiedInputStreamstatic @NotNull AnnoyingOptionsload(@NotNull org.bukkit.configuration.ConfigurationSection section) Loads the options from the specifiedConfigurationSection@NotNull AnnoyingOptionspluginOptions(@NotNull Consumer<PluginOptions> consumer) SetspluginOptions@NotNull AnnoyingOptionspluginOptions(@NotNull PluginOptions pluginOptions) SetspluginOptions@NotNull AnnoyingOptionsregistrationOptions(@NotNull Consumer<RegistrationOptions> consumer) SetsregistrationOptions@NotNull AnnoyingOptionsregistrationOptions(@NotNull RegistrationOptions registrationOptions) SetsregistrationOptions@NotNull AnnoyingOptionsstatsOptions(@NotNull Consumer<StatsOptions> consumer) SetsstatsOptions@NotNull AnnoyingOptionsstatsOptions(@NotNull StatsOptions statsOptions) SetsstatsOptionsMethods inherited from class xyz.srnyx.javautilities.parents.Stringable
toString, toString, toString, toString, toString
-
Field Details
-
pluginOptions
-
registrationOptions
-
statsOptions
-
dataOptions
-
-
Constructor Details
-
AnnoyingOptions
public AnnoyingOptions()Constructs a newAnnoyingOptionsinstance with default values
-
-
Method Details
-
load
@NotNull public static @NotNull AnnoyingOptions load(@NotNull @NotNull org.bukkit.configuration.ConfigurationSection section) Loads the options from the specifiedConfigurationSection- Parameters:
section- the section to load the options from- Returns:
- the loaded options
-
load
Loads the options from the specifiedInputStream- Parameters:
inputStream- the input stream to load the options from- Returns:
- the loaded options
-
pluginOptions
@NotNull public @NotNull AnnoyingOptions pluginOptions(@NotNull @NotNull PluginOptions pluginOptions) SetspluginOptions- Parameters:
pluginOptions- the newpluginOptions- Returns:
- the
AnnoyingOptionsinstance for chaining
-
pluginOptions
@NotNull public @NotNull AnnoyingOptions pluginOptions(@NotNull @NotNull Consumer<PluginOptions> consumer) SetspluginOptions- Parameters:
consumer- the consumer to accept thePluginOptions- Returns:
- the
AnnoyingOptionsinstance for chaining
-
statsOptions
SetsstatsOptions- Parameters:
statsOptions- the newstatsOptions- Returns:
- the
AnnoyingOptionsinstance for chaining
-
statsOptions
@NotNull public @NotNull AnnoyingOptions statsOptions(@NotNull @NotNull Consumer<StatsOptions> consumer) SetsstatsOptions- Parameters:
consumer- the consumer to accept theStatsOptions- Returns:
- the
AnnoyingOptionsinstance for chaining
-
dataOptions
SetsdataOptions- Parameters:
dataOptions- the newdataOptions- Returns:
- the
AnnoyingOptionsinstance for chaining
-
dataOptions
@NotNull public @NotNull AnnoyingOptions dataOptions(@NotNull @NotNull Consumer<DataOptions> consumer) SetsdataOptions- Parameters:
consumer- the consumer to accept theDataOptions- Returns:
- the
AnnoyingOptionsinstance for chaining
-
registrationOptions
@NotNull public @NotNull AnnoyingOptions registrationOptions(@NotNull @NotNull RegistrationOptions registrationOptions) SetsregistrationOptions- Parameters:
registrationOptions- the newregistrationOptions- Returns:
- the
AnnoyingOptionsinstance for chaining
-
registrationOptions
@NotNull public @NotNull AnnoyingOptions registrationOptions(@NotNull @NotNull Consumer<RegistrationOptions> consumer) SetsregistrationOptions- Parameters:
consumer- the consumer to accept theRegistrationOptions- Returns:
- the
AnnoyingOptionsinstance for chaining
-