public interface AnnoyingFile
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeEmpty()
This
boolean is used by save() |
void |
create()
Creates the
getFile() |
default void |
delete()
Deletes the
getFile() |
@NotNull java.io.File |
getFile()
The file is constructed using
getPath() |
@NotNull java.lang.String |
getPath()
The path is from the plugin's folder, not the server/root folder (unless otherwise specified)
|
@NotNull org.bukkit.configuration.file.YamlConfiguration |
getYaml()
Every
AnnoyingFile should extend YamlConfiguration |
default void |
load()
Loads the
getYaml() from the path |
default void |
save()
|
default void |
set(@NotNull java.lang.String path,
@Nullable java.lang.Object value,
boolean save)
Sets a value in the
getYaml() |
@NotNull @NotNull org.bukkit.configuration.file.YamlConfiguration getYaml()
AnnoyingFile should extend YamlConfigurationYamlConfiguration for this file@NotNull @NotNull java.lang.String getPath()
@NotNull @NotNull java.io.File getFile()
getPath()Fileboolean canBeEmpty()
boolean is used by save()save() is useddefault void load()
getYaml() from the pathvoid create()
getFile()default void delete()
getFile()default void set(@NotNull
@NotNull java.lang.String path,
@Nullable
@Nullable java.lang.Object value,
boolean save)
getYaml()path - the path to the valuevalue - the value to setsave - whether to save the file after setting the valuedefault void save()