Package ch.njol.skript.doc
Class JSONGenerator
java.lang.Object
ch.njol.skript.doc.DocumentationGenerator
ch.njol.skript.doc.JSONGenerator
Generates JSON docs
-
Field Summary
FieldsFields inherited from class ch.njol.skript.doc.DocumentationGenerator
outputDir, templateDir
-
Constructor Summary
ConstructorsConstructorDescriptionJSONGenerator
(File templateDir, File outputDir) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoid
generate()
Deprecated, for removal: This API element is subject to removal in a future version.Usegenerate(Path)
instead.void
Generates the json documentation for this addon at the specified path.static JSONGenerator
of
(@NotNull SkriptAddon source) Creates aJSONGenerator
for the specified source.
-
Field Details
-
JSON_VERSION
The current version of the JSON generator
-
-
Constructor Details
-
JSONGenerator
Deprecated, for removal: This API element is subject to removal in a future version.Useof(SkriptAddon)
instead.
-
-
Method Details
-
of
Creates aJSONGenerator
for the specified source.- Parameters:
source
- The addon to use as source.- Returns:
- The created
JSONGenerator
.
-
generate
Generates the json documentation for this addon at the specified path.- Parameters:
path
- The output path.- Throws:
IOException
-
generate
Deprecated, for removal: This API element is subject to removal in a future version.Usegenerate(Path)
instead.Description copied from class:DocumentationGenerator
Usegenerate(Path)
instead.- Specified by:
generate
in classDocumentationGenerator
-
of(SkriptAddon)
instead.