Module ultimategdbot.api
Class CommandDocumentation
- java.lang.Object
-
- com.github.alex1304.ultimategdbot.api.command.CommandDocumentation
-
public final class CommandDocumentation extends Object
Holds the documentation for a specific command.
-
-
Constructor Summary
Constructors Constructor Description CommandDocumentation(Translator translator, String shortDescription, Map<String,CommandDocumentationEntry> docEntries, boolean isHidden)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,CommandDocumentationEntry>
getEntries()
Gets all entries corresponding to subsections of the command documentation.String
getShortDescription()
Gets the short description of the command.boolean
isHidden()
Gets whether the command should be hidden from the documentation front page.
-
-
-
Constructor Detail
-
CommandDocumentation
public CommandDocumentation(Translator translator, String shortDescription, Map<String,CommandDocumentationEntry> docEntries, boolean isHidden)
-
-
Method Detail
-
getShortDescription
public String getShortDescription()
Gets the short description of the command.- Returns:
- the short description
-
getEntries
public Map<String,CommandDocumentationEntry> getEntries()
Gets all entries corresponding to subsections of the command documentation.- Returns:
- the documentation entries
-
isHidden
public boolean isHidden()
Gets whether the command should be hidden from the documentation front page.- Returns:
- true if hidden, false otherwise
-
-