G - the type of the AnnoyingFile.Options instancepublic static class AnnoyingFile.Options<G extends AnnoyingFile.Options<G>>
extends xyz.srnyx.javautilities.parents.Stringable
| Modifier and Type | Field and Description |
|---|---|
boolean |
canBeEmpty
Whether the file can be empty.
|
boolean |
replace
Whether to replace the file if it already exists.
|
| Constructor and Description |
|---|
Options()
Creates a new
AnnoyingFile.Options instance |
| Modifier and Type | Method and Description |
|---|---|
G |
canBeEmpty(boolean canBeEmpty)
Sets the
canBeEmpty |
static <R extends AnnoyingFile.Options<R>> |
load(@NotNull org.bukkit.configuration.ConfigurationSection section)
Loads a
AnnoyingFile.Options from the given ConfigurationSection |
static <H extends AnnoyingFile.Options<H>> |
load(H options,
@NotNull org.bukkit.configuration.ConfigurationSection section)
Loads a
AnnoyingFile.Options from the given ConfigurationSection |
G |
replace(boolean replace)
Sets the
replace |
public boolean canBeEmpty
AnnoyingFile.save() is usedpublic boolean replace
canBeEmpty set to truepublic Options()
AnnoyingFile.Options instance@NotNull public static <H extends AnnoyingFile.Options<H>> H load(@NotNull H options, @NotNull @NotNull org.bukkit.configuration.ConfigurationSection section)
AnnoyingFile.Options from the given ConfigurationSectionH - the type of the AnnoyingFile.Options instanceoptions - the AnnoyingFile.Options to load intosection - the ConfigurationSection to load fromAnnoyingFile.Options instance@NotNull public static <R extends AnnoyingFile.Options<R>> @NotNull AnnoyingFile.Options<R> load(@NotNull @NotNull org.bukkit.configuration.ConfigurationSection section)
AnnoyingFile.Options from the given ConfigurationSectionR - the type of the AnnoyingFile.Options instancesection - the ConfigurationSection to load fromAnnoyingFile.Options instance@NotNull public G canBeEmpty(boolean canBeEmpty)
canBeEmptycanBeEmpty - canBeEmptyAnnoyingFile.Options instance@NotNull public G replace(boolean replace)
replacereplace - replaceAnnoyingFile.Options instance