public interface PluginFile
PluginFile| Modifier and Type | Method and Description | 
|---|---|
| FileDataType | getConfig()Returns the relevant  FileDataTypefor this config. | 
| Object | getDefault()Returns the default value of the key | 
| static File | getFileLocation(Class<? extends PluginFile> clazz)Returns the save location for passed  PluginFileargument | 
| String | getPath()The YAML path to store this value in | 
| default <T extends FileDataType> | init(Class<T> clazz)Loads the lang values from the configuration file. | 
| default void | save()Saves the current configuration from memory | 
| default void | save(File file)Saves the current configuration from memory to a specific  File | 
static File getFileLocation(Class<? extends PluginFile> clazz)
PluginFile argumentclazz - An implementing class with the PluginClass and
              RelativePath annotationsFile pointing to the location containing saved values
           for this configuration typeString getPath()
Object getDefault()
FileDataType getConfig()
FileDataType for this config.FileDataType of this Configdefault <T extends FileDataType> T init(Class<T> clazz)
T - The type of FileDataType to returnclazz - The Class of the returned FileDataTypeFileDataType for all the config infodefault void save()
           throws IOException
IOException - Failed to save to the filedefault void save(File file) throws IOException
Filefile - The file to save toIOException - Failed to save to the fileCopyright © 2015. All rights reserved.