Package valorless.valorlessutils.file
Class FileStorage
java.lang.Object
org.bukkit.configuration.MemorySection
org.bukkit.configuration.MemoryConfiguration
org.bukkit.configuration.file.FileConfiguration
org.bukkit.configuration.file.YamlConfiguration
valorless.valorlessutils.file.FileStorage
- All Implemented Interfaces:
- org.bukkit.configuration.Configuration,- org.bukkit.configuration.ConfigurationSection
public abstract class FileStorage
extends org.bukkit.configuration.file.YamlConfiguration
- 
Field SummaryFields inherited from class org.bukkit.configuration.file.YamlConfigurationBLANK_CONFIG, COMMENT_PREFIXFields inherited from class org.bukkit.configuration.MemoryConfigurationdefaults, optionsFields inherited from class org.bukkit.configuration.MemorySectionmap
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanCreates a new file.booleanDeletes the file associated with this instance.booleanChecks if the file associated with this instance exists.getFile()Gets the File object associated with this instance.static org.bukkit.configuration.file.YamlConfigurationloadConfiguration(File file) Methods inherited from class org.bukkit.configuration.file.YamlConfigurationloadConfiguration, loadFromString, options, saveToStringMethods inherited from class org.bukkit.configuration.file.FileConfigurationbuildHeader, load, load, load, save, saveMethods inherited from class org.bukkit.configuration.MemoryConfigurationaddDefault, addDefaults, addDefaults, getDefaults, getParent, setDefaultsMethods inherited from class org.bukkit.configuration.MemorySectioncontains, contains, createPath, createPath, createSection, createSection, get, get, getBoolean, getBoolean, getBooleanList, getByteList, getCharacterList, getColor, getColor, getComments, getConfigurationSection, getCurrentPath, getDefault, getDefaultSection, getDouble, getDouble, getDoubleList, getFloatList, getInlineComments, getInt, getInt, getIntegerList, getItemStack, getItemStack, getKeys, getList, getList, getLocation, getLocation, getLong, getLong, getLongList, getMapList, getName, getObject, getObject, getOfflinePlayer, getOfflinePlayer, getRoot, getSerializable, getSerializable, getShortList, getString, getString, getStringList, getValues, getVector, getVector, isBoolean, isColor, isConfigurationSection, isDouble, isInt, isItemStack, isList, isLocation, isLong, isOfflinePlayer, isPrimitiveWrapper, isSet, isString, isVector, mapChildrenKeys, mapChildrenValues, set, setComments, setInlineComments, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.configuration.ConfigurationSectioncontains, contains, createSection, createSection, get, get, getBoolean, getBoolean, getBooleanList, getByteList, getCharacterList, getColor, getColor, getComments, getConfigurationSection, getCurrentPath, getDefaultSection, getDouble, getDouble, getDoubleList, getFloatList, getInlineComments, getInt, getInt, getIntegerList, getItemStack, getItemStack, getKeys, getList, getList, getLocation, getLocation, getLong, getLong, getLongList, getMapList, getName, getObject, getObject, getOfflinePlayer, getOfflinePlayer, getRoot, getSerializable, getSerializable, getShortList, getString, getString, getStringList, getValues, getVector, getVector, isBoolean, isColor, isConfigurationSection, isDouble, isInt, isItemStack, isList, isLocation, isLong, isOfflinePlayer, isSet, isString, isVector, set, setComments, setInlineComments
- 
Constructor Details- 
FileStorageConstructor for FileStorage class.- Parameters:
- file- The File object representing the file to be managed.
 
 
- 
- 
Method Details- 
createFilepublic boolean createFile()Creates a new file. Returns true if the file is created successfully, false otherwise.- Returns:
- true if the file is created successfully, false otherwise.
 
- 
fileExistspublic boolean fileExists()Checks if the file associated with this instance exists.- Returns:
- true if the file exists, false otherwise.
 
- 
deleteFilepublic boolean deleteFile()Deletes the file associated with this instance.- Returns:
- true if the file is deleted successfully, false otherwise.
 
- 
getFileGets the File object associated with this instance.- Returns:
- The File object.
 
- 
loadConfiguration
 
-