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.
|
| Constructor and Description |
|---|
Options()
Creates a new
AnnoyingFile.Options instance |
| Modifier and Type | Method and Description |
|---|---|
G |
canBeEmpty(boolean canBeEmpty)
Sets the
canBeEmpty |
static @NotNull AnnoyingFile.Options<?> |
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 |
public boolean canBeEmpty
AnnoyingFile.save() is usedpublic 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 @NotNull AnnoyingFile.Options<?> load(@NotNull @NotNull org.bukkit.configuration.ConfigurationSection section)
AnnoyingFile.Options from the given ConfigurationSectionsection - the ConfigurationSection to load fromAnnoyingFile.Options instance@NotNull public G canBeEmpty(boolean canBeEmpty)
canBeEmptycanBeEmpty - canBeEmptyAnnoyingFile.Options instance