Class JYML
java.lang.Object
org.bukkit.configuration.MemorySection
org.bukkit.configuration.MemoryConfiguration
org.bukkit.configuration.file.FileConfiguration
org.bukkit.configuration.file.YamlConfiguration
studio.magemonkey.codex.config.api.JYML
- All Implemented Interfaces:
org.bukkit.configuration.Configuration,org.bukkit.configuration.ConfigurationSection
public class JYML
extends org.bukkit.configuration.file.YamlConfiguration
-
Field Summary
Fields inherited from class org.bukkit.configuration.file.YamlConfiguration
BLANK_CONFIG, COMMENT_PREFIXFields inherited from class org.bukkit.configuration.MemoryConfiguration
defaults, optionsFields inherited from class org.bukkit.configuration.MemorySection
map -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddMissing(String path, Object val) getFile()getGuiItem(String path) getGuiItem(String path, Class<T> clazzEnum) int[]getIntArray(String path) org.bukkit.inventory.ItemStackorg.bukkit.inventory.ItemStackorg.bukkit.LocationgetLocation(String path) getSection(String path) getStringSet(String path) static JYMLloadOrExtract(CodexPlugin<?> plugin, String filePath) booleanreload()booleanvoidsave()booleanvoidvoidsetIntArray(String path, int[] arr) voidvoidsetLocation(String path, org.bukkit.Location loc) Deprecated.Methods inherited from class org.bukkit.configuration.file.YamlConfiguration
loadConfiguration, loadConfiguration, loadFromString, options, saveToStringMethods inherited from class org.bukkit.configuration.file.FileConfiguration
buildHeader, 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, 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, getLong, getLong, getLongList, getMapList, getName, getObject, getObject, getOfflinePlayer, getOfflinePlayer, getRoot, getSerializable, getSerializable, getShortList, getStringList, getValues, getVector, getVector, isBoolean, isColor, isConfigurationSection, isDouble, isInt, isItemStack, isList, isLocation, isLong, isOfflinePlayer, isPrimitiveWrapper, isSet, isString, isVector, mapChildrenKeys, mapChildrenValues, setComments, setInlineComments, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.configuration.ConfigurationSection
contains, 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, getLong, getLong, getLongList, getMapList, getName, getObject, getObject, getOfflinePlayer, getOfflinePlayer, getRoot, getSerializable, getSerializable, getShortList, getStringList, getValues, getVector, getVector, isBoolean, isColor, isConfigurationSection, isDouble, isInt, isItemStack, isList, isLocation, isLong, isOfflinePlayer, isSet, isString, isVector, setComments, setInlineComments
-
Constructor Details
-
Method Details
-
getFile
-
save
public void save() -
saveChanges
public boolean saveChanges() -
reload
public boolean reload() throws org.bukkit.configuration.InvalidConfigurationException- Throws:
org.bukkit.configuration.InvalidConfigurationException
-
loadOrExtract
@NotNull public static JYML loadOrExtract(@NotNull CodexPlugin<?> plugin, @NotNull String filePath) throws org.bukkit.configuration.InvalidConfigurationException - Throws:
org.bukkit.configuration.InvalidConfigurationException
-
loadAll
-
addMissing
-
set
- Specified by:
setin interfaceorg.bukkit.configuration.ConfigurationSection- Overrides:
setin classorg.bukkit.configuration.MemorySection
-
remove
-
getSection
-
getString
- Specified by:
getStringin interfaceorg.bukkit.configuration.ConfigurationSection- Overrides:
getStringin classorg.bukkit.configuration.MemorySection
-
getString
- Specified by:
getStringin interfaceorg.bukkit.configuration.ConfigurationSection- Overrides:
getStringin classorg.bukkit.configuration.MemorySection
-
getStringSet
-
getLocation
- Specified by:
getLocationin interfaceorg.bukkit.configuration.ConfigurationSection- Overrides:
getLocationin classorg.bukkit.configuration.MemorySection
-
setLocation
Deprecated. -
getIntArray
-
setIntArray
-
getItem
-
getItem
-
getGuiItem
-
getGuiItem
-
setItem
-