public class AnnoyingResource extends org.bukkit.configuration.file.YamlConfiguration implements AnnoyingFile
| Constructor and Description |
|---|
AnnoyingResource(@NotNull AnnoyingPlugin plugin,
@NotNull java.lang.String path)
Constructs and loads a new
AnnoyingResource from the path |
AnnoyingResource(@NotNull AnnoyingPlugin plugin,
@NotNull java.lang.String path,
boolean canBeEmpty)
Constructs and loads a new
AnnoyingResource from the path |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeEmpty()
This
boolean is used by AnnoyingFile.save() |
void |
create()
Creates the
AnnoyingFile.getFile() |
@NotNull java.io.File |
getFile()
The file is constructed using
AnnoyingFile.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 |
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, waitdelete, load, save, setcontains, 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, setpublic AnnoyingResource(@NotNull
@NotNull AnnoyingPlugin plugin,
@NotNull
@NotNull java.lang.String path,
boolean canBeEmpty)
AnnoyingResource from the pathpath - the path to the file (relative to the plugin's folder)canBeEmpty - whether the file can be empty. If false, the file will be deleted if it's empty when AnnoyingFile.save() is usedplugin - the AnnoyingPlugin instance (used in AnnoyingFile.load())public AnnoyingResource(@NotNull
@NotNull AnnoyingPlugin plugin,
@NotNull
@NotNull java.lang.String path)
AnnoyingResource from the pathpath - the path to the file (relative to the plugin's folder)plugin - the AnnoyingPlugin instance (used in AnnoyingFile.load())@NotNull public @NotNull org.bukkit.configuration.file.YamlConfiguration getYaml()
AnnoyingFileAnnoyingFile should extend YamlConfigurationgetYaml in interface AnnoyingFileYamlConfiguration for this file@NotNull public @NotNull java.lang.String getPath()
AnnoyingFilegetPath in interface AnnoyingFile@NotNull public @NotNull java.io.File getFile()
AnnoyingFileAnnoyingFile.getPath()getFile in interface AnnoyingFileFilepublic boolean canBeEmpty()
AnnoyingFileboolean is used by AnnoyingFile.save()canBeEmpty in interface AnnoyingFileAnnoyingFile.save() is usedpublic void create()
AnnoyingFileAnnoyingFile.getFile()create in interface AnnoyingFile