Package xyz.srnyx.annoyingapi.file
Class AnnoyingResource
java.lang.Object
org.bukkit.configuration.MemorySection
org.bukkit.configuration.MemoryConfiguration
org.bukkit.configuration.file.FileConfiguration
org.bukkit.configuration.file.YamlConfiguration
xyz.srnyx.annoyingapi.file.AnnoyingFile<AnnoyingResource>
xyz.srnyx.annoyingapi.file.AnnoyingResource
- All Implemented Interfaces:
org.bukkit.configuration.Configuration,org.bukkit.configuration.ConfigurationSection
Represents a file in the plugin's folder (usually a config file), the file MUST exist in the
resources folder-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the options for theAnnoyingResource
Default options:AnnoyingResource.Options.createDefaultFile=truerest:AnnoyingFile.Options -
Field Summary
Fields inherited from class xyz.srnyx.annoyingapi.file.AnnoyingFile
file, fileOptions, pluginFields inherited from class org.bukkit.configuration.file.YamlConfiguration
BLANK_CONFIG, COMMENT_PREFIXFields inherited from class org.bukkit.configuration.file.FileConfiguration
SYSTEM_UTF, UTF_BIG, UTF8_OVERRIDEFields inherited from class org.bukkit.configuration.MemoryConfiguration
defaults, optionsFields inherited from class org.bukkit.configuration.MemorySection
map -
Constructor Summary
ConstructorsConstructorDescriptionAnnoyingResource(@NotNull AnnoyingPlugin plugin, @NotNull String path) Constructs and loads a newAnnoyingResourcefrom the path, the file MUST exist in theresourcesfolderAnnoyingResource(@NotNull AnnoyingPlugin plugin, @NotNull String path, AnnoyingResource.Options fileOptions) Constructs and loads a newAnnoyingResourcefrom the path, the file MUST exist in theresourcesfolder -
Method Summary
Methods inherited from class xyz.srnyx.annoyingapi.file.AnnoyingFile
delete, delete, getAttributeModifier, getAttributeModifier, getConfigurationSectionOptional, getDef, getItemStack, getItemStack, getItemStackOptional, getItemStackOptional, getPlayableSound, getPotionEffect, getPotionEffect, getRecipe, getRecipe, getRecipe, getRecipe, getSound, load, log, save, setChain, setSave, toStringMethods inherited from class org.bukkit.configuration.file.YamlConfiguration
buildHeader, convertMapsToSections, loadConfiguration, loadConfiguration, loadConfiguration, loadFromString, options, parseHeader, saveToStringMethods inherited from class org.bukkit.configuration.file.FileConfiguration
load, load, load, load, save, saveMethods inherited from class org.bukkit.configuration.MemoryConfiguration
addDefault, addDefaults, addDefaults, getDefaults, getParent, setDefaultsMethods inherited from class org.bukkit.configuration.MemorySection
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, 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, setMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.configuration.ConfigurationSection
contains, createSection, createSection, get, get, getBoolean, getBoolean, getBooleanList, getByteList, getCharacterList, getColor, getColor, getConfigurationSection, getCurrentPath, getDefaultSection, getDouble, getDouble, getDoubleList, getFloatList, getInt, getInt, getIntegerList, 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
-
Constructor Details
-
AnnoyingResource
public AnnoyingResource(@NotNull @NotNull AnnoyingPlugin plugin, @NotNull @NotNull String path, @Nullable AnnoyingResource.Options fileOptions) Constructs and loads a newAnnoyingResourcefrom the path, the file MUST exist in theresourcesfolder- Parameters:
plugin- theAnnoyingPlugininstance (used inAnnoyingFile.load())path- the path to the file (relative to the plugin's folder)fileOptions- theoptionsfor the file
-
AnnoyingResource
Constructs and loads a newAnnoyingResourcefrom the path, the file MUST exist in theresourcesfolder- Parameters:
plugin- theAnnoyingPlugininstance (used inAnnoyingFile.load())path- the path to the file (relative to the plugin's folder)- See Also:
-
-
Method Details
-
create
public void create()Description copied from class:AnnoyingFileCreates theAnnoyingFile.file- Overrides:
createin classAnnoyingFile<AnnoyingResource>
-