T - the type of the AnnoyingFile.Options instancepublic static class AnnoyingFile.Options<T extends AnnoyingFile.Options<T>> extends 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 |
|---|---|
T |
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 <G extends AnnoyingFile.Options<G>> |
load(G options,
@NotNull org.bukkit.configuration.ConfigurationSection section)
Loads a
AnnoyingFile.Options from the given ConfigurationSection |
toString, toStringpublic boolean canBeEmpty
AnnoyingFile.save() is usedpublic Options()
AnnoyingFile.Options instance@NotNull public static <G extends AnnoyingFile.Options<G>> G load(@NotNull G options, @NotNull @NotNull org.bukkit.configuration.ConfigurationSection section)
AnnoyingFile.Options from the given ConfigurationSectionG - 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 T canBeEmpty(boolean canBeEmpty)
canBeEmptycanBeEmpty - canBeEmptyAnnoyingFile.Options instance