T - the type of the AnnoyingFile.FileOptions instancepublic static class AnnoyingFile.FileOptions<T extends AnnoyingFile.FileOptions<T>> extends java.lang.Object implements Dumpable<org.bukkit.configuration.ConfigurationSection>
| Modifier and Type | Field and Description |
|---|---|
boolean |
canBeEmpty
Whether the file can be empty.
|
| Constructor and Description |
|---|
FileOptions()
Creates a new
AnnoyingFile.FileOptions instance |
| Modifier and Type | Method and Description |
|---|---|
T |
canBeEmpty(boolean canBeEmpty)
Sets the
canBeEmpty |
@NotNull org.bukkit.configuration.ConfigurationSection |
dump(@NotNull org.bukkit.configuration.ConfigurationSection section)
Dumps the object to an object
|
static <G extends AnnoyingFile.FileOptions<G>> |
load(G options,
@NotNull org.bukkit.configuration.ConfigurationSection section)
Loads a
AnnoyingFile.FileOptions from the given ConfigurationSection |
public boolean canBeEmpty
AnnoyingFile.save() is usedpublic FileOptions()
AnnoyingFile.FileOptions instance@NotNull public static <G extends AnnoyingFile.FileOptions<G>> G load(@NotNull G options, @NotNull @NotNull org.bukkit.configuration.ConfigurationSection section)
AnnoyingFile.FileOptions from the given ConfigurationSectionG - the type of the AnnoyingFile.FileOptions instanceoptions - the AnnoyingFile.FileOptions to load intosection - the ConfigurationSection to load fromAnnoyingFile.FileOptions instance@NotNull
public @NotNull org.bukkit.configuration.ConfigurationSection dump(@NotNull
@NotNull org.bukkit.configuration.ConfigurationSection section)
Dumpable@NotNull public T canBeEmpty(boolean canBeEmpty)
canBeEmptycanBeEmpty - canBeEmptyAnnoyingFile.FileOptions instance