Uses of Class
studio.magemonkey.codex.mccore.config.parse.DataSection
Packages that use DataSection
Package
Description
-
Uses of DataSection in studio.magemonkey.codex.mccore.commands
Methods in studio.magemonkey.codex.mccore.commands with parameters of type DataSectionModifier and TypeMethodDescriptionstatic voidCommandManager.loadOptions(DataSection config) Loads options for displaying command usages from the configuration -
Uses of DataSection in studio.magemonkey.codex.mccore.config
Methods in studio.magemonkey.codex.mccore.config that return DataSection -
Uses of DataSection in studio.magemonkey.codex.mccore.config.parse
Methods in studio.magemonkey.codex.mccore.config.parse that return DataSectionModifier and TypeMethodDescriptionDataSection.createSection(String key) Creates a new data section at the given keyDataSection.defaultSection(String key) Checks for a data section at the given key.DataSection.getSection(String key) Retrieves a data section from the given locationstatic DataSectionReads and then parses data from the file.static DataSectionReads and then parses data from the file at the given path.Reads and then parses data from the file.Reads and then parses data from the file at the given path.static DataSectionJSONParser.parseResource(org.bukkit.plugin.Plugin plugin, String path) Reads and then parses data from an embedded plugin resource.YAMLParser.parseResource(org.bukkit.plugin.Plugin plugin, String path) Reads and then parses data from an embedded plugin resource.static DataSectionParses the text read in from a file.Parses the text read in from a file.Parses the text read in from a file.Methods in studio.magemonkey.codex.mccore.config.parse that return types with arguments of type DataSectionMethods in studio.magemonkey.codex.mccore.config.parse with parameters of type DataSectionModifier and TypeMethodDescriptionvoidDataSection.applyDefaults(DataSection defaults) Applies defaults to this data sectionstatic voidJSONParser.dump(DataSection data, StringBuilder builder) Dumps config data to a string in JSON formatvoidYAMLParser.dump(DataSection data, StringBuilder builder, int indent, char quote) Dumps config data to a string in YAML formatstatic voidJSONParser.save(DataSection data, BufferedWriter write) Dumps the data contents into the streamstatic voidJSONParser.save(DataSection data, File file) Dumps the data contents to a file to the given filestatic voidJSONParser.save(DataSection data, String path) Saves config data to a filevoidYAMLParser.save(DataSection data, BufferedWriter write) Dumps the data contents into the streamvoidYAMLParser.save(DataSection data, File file) Dumps the data contents to a file to the given filevoidYAMLParser.save(DataSection data, String path) Saves config data to a filevoidDataSection.trim(DataSection defaults) Trims the data, only keeping what is also in the default section