Package net.tnemc.plugincore.core.config
Class Config
java.lang.Object
net.tnemc.plugincore.core.config.Config
- All Implemented Interfaces:
IPasteable
Represents a configuration file.
- Since:
- 0.1.2.0
- Author:
- creatorfromhell
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontent()
Retrieves the content of the object.Retrieves the extension associated with this object.fileName()
Retrieves the file name associated with this object.@Nullable InputStream
getResource
(@NotNull String filename) dev.dejvokep.boostedyaml.YamlDocument
getYaml()
boolean
load()
boolean
save()
void
setComment
(String route, String comment) void
setComment
(String route, List<String> comments) void
setYaml
(dev.dejvokep.boostedyaml.YamlDocument yaml) syntax()
Retrieves the syntax associated with this object.
-
Constructor Details
-
Method Details
-
load
-
getYaml
-
setYaml
-
save
-
setComment
-
setComment
-
getResource
-
fileName
Retrieves the file name associated with this object.- Specified by:
fileName
in interfaceIPasteable
- Returns:
- The file name as a String.
-
extension
Retrieves the extension associated with this object.- Specified by:
extension
in interfaceIPasteable
- Returns:
- The extension as a String.
-
syntax
Retrieves the syntax associated with this object.- Specified by:
syntax
in interfaceIPasteable
- Returns:
- The syntax as a String.
-
content
Retrieves the content of the object.- Specified by:
content
in interfaceIPasteable
- Returns:
- The content as a String.
-