public class AnnoyingResource extends AnnoyingFile<AnnoyingResource>
resources folder| Modifier and Type | Class and Description |
|---|---|
static class |
AnnoyingResource.Options
Represents the options for the
AnnoyingResource
Default options: AnnoyingResource.Options.createDefaultFile = true
rest: AnnoyingFile.Options
|
file, fileOptions, pluginBLANK_CONFIG, COMMENT_PREFIX| Constructor and Description |
|---|
AnnoyingResource(@NotNull AnnoyingPlugin plugin,
@NotNull java.lang.String path)
Constructs and loads a new
AnnoyingResource from the path, the file MUST exist in the resources folder |
AnnoyingResource(@NotNull AnnoyingPlugin plugin,
@NotNull java.lang.String path,
AnnoyingResource.Options fileOptions)
Constructs and loads a new
AnnoyingResource from the path, the file MUST exist in the resources folder |
| Modifier and Type | Method and Description |
|---|---|
void |
create()
Creates the
AnnoyingFile.file |
delete, delete, getAttributeModifier, getDef, getItemStack, getItemStack, getItemStackOptional, getPlayableSound, getPotionEffect, getRecipe, getRecipe, getRecipe, getSectionOrCreate, getSound, load, log, save, setChain, setSave, toStringbuildHeader, convertMapsToSections, loadConfiguration, loadConfiguration, loadConfiguration, loadFromString, options, parseHeader, saveToStringload, load, load, load, save, saveaddDefault, addDefaults, addDefaults, getDefaults, getParent, setDefaultscontains, 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, setclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontains, 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, setpublic AnnoyingResource(@NotNull
@NotNull AnnoyingPlugin plugin,
@NotNull
@NotNull java.lang.String path,
@Nullable
AnnoyingResource.Options fileOptions)
AnnoyingResource from the path, the file MUST exist in the resources folderplugin - the AnnoyingPlugin instance (used in AnnoyingFile.load())path - the path to the file (relative to the plugin's folder)fileOptions - the options for the filepublic AnnoyingResource(@NotNull
@NotNull AnnoyingPlugin plugin,
@NotNull
@NotNull java.lang.String path)
AnnoyingResource from the path, the file MUST exist in the resources folderplugin - the AnnoyingPlugin instance (used in AnnoyingFile.load())path - the path to the file (relative to the plugin's folder)AnnoyingResource(AnnoyingPlugin, String, Options)public void create()
AnnoyingFileAnnoyingFile.filecreate in class AnnoyingFile<AnnoyingResource>