public abstract class AnnoyingFile
extends org.bukkit.configuration.file.YamlConfiguration
| Modifier and Type | Class and Description |
|---|---|
static class |
AnnoyingFile.FileOptions
A class to hold the options for a file
|
| Modifier and Type | Field and Description |
|---|---|
@NotNull java.io.File |
file
The file constructed using the
path |
protected @NotNull AnnoyingFile.FileOptions |
fileOptions
The
AnnoyingFile.FileOptions for the file |
@NotNull java.lang.String |
path
The path to the file
|
@NotNull AnnoyingPlugin |
plugin
The
AnnoyingPlugin instance |
| Modifier | Constructor and Description |
|---|---|
protected |
AnnoyingFile(@NotNull AnnoyingPlugin plugin,
@NotNull java.lang.String path)
Constructs a new
AnnoyingFile |
protected |
AnnoyingFile(@NotNull AnnoyingPlugin plugin,
@NotNull java.lang.String path,
@Nullable AnnoyingFile.FileOptions fileOptions)
Constructs a new
AnnoyingFile |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
create()
Creates the
file |
void |
delete()
Deletes the
file |
void |
load()
Loads the YAML from the path
|
void |
save()
Saves the YAML to the
file |
void |
setSave(@Nullable java.lang.String key,
@NotNull java.lang.Object value)
Sets a value in the YAML and then
saves the file |
buildHeader, convertMapsToSections, loadConfiguration, loadConfiguration, loadConfiguration, loadFromString, options, parseHeader, saveToStringload, load, load, load, save, saveaddDefault, addDefaults, addDefaults, getDefaults, getParent, setDefaultscontains, contains, createPath, createPath, createSection, createSection, get, get, getBoolean, getBoolean, getBooleanList, getByteList, getCharacterList, getColor, getColor, getConfigurationSection, getCurrentPath, getDefault, getDefaultSection, getDouble, getDouble, getDoubleList, getFloatList, getInt, getInt, getIntegerList, getItemStack, getItemStack, getKeys, getList, getList, getLong, getLong, getLongList, getMapList, getName, getOfflinePlayer, getOfflinePlayer, getRoot, getShortList, getString, getString, getStringList, getValues, getVector, getVector, isBoolean, isColor, isConfigurationSection, isDouble, isInt, isItemStack, isList, isLong, isOfflinePlayer, isPrimitiveWrapper, isSet, isString, isVector, mapChildrenKeys, mapChildrenValues, set, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontains, contains, createSection, createSection, get, get, getBoolean, getBoolean, getBooleanList, getByteList, getCharacterList, getColor, getColor, getConfigurationSection, getCurrentPath, getDefaultSection, getDouble, getDouble, getDoubleList, getFloatList, getInt, getInt, getIntegerList, getItemStack, getItemStack, getKeys, getList, getList, getLong, getLong, getLongList, getMapList, getName, getOfflinePlayer, getOfflinePlayer, getRoot, getShortList, getString, getString, getStringList, getValues, getVector, getVector, isBoolean, isColor, isConfigurationSection, isDouble, isInt, isItemStack, isList, isLong, isOfflinePlayer, isSet, isString, isVector, set@NotNull public final @NotNull AnnoyingPlugin plugin
AnnoyingPlugin instance@NotNull public final @NotNull java.lang.String path
@NotNull public final @NotNull java.io.File file
path@NotNull protected final @NotNull AnnoyingFile.FileOptions fileOptions
AnnoyingFile.FileOptions for the fileprotected AnnoyingFile(@NotNull
@NotNull AnnoyingPlugin plugin,
@NotNull
@NotNull java.lang.String path,
@Nullable
@Nullable AnnoyingFile.FileOptions fileOptions)
AnnoyingFileplugin - pluginpath - pathfileOptions - fileOptionsprotected AnnoyingFile(@NotNull
@NotNull AnnoyingPlugin plugin,
@NotNull
@NotNull java.lang.String path)
AnnoyingFilepublic abstract void create()
filepublic void load()
public void delete()
filepublic void setSave(@Nullable
@Nullable java.lang.String key,
@NotNull
@NotNull java.lang.Object value)
saves the filekey - the key to setvalue - the value to set the key topublic void save()
file