java.lang.Object
com.adventure.commands.CommandMetadata
Object that stores metadata for a specific command.
-
Constructor Summary
ConstructorsConstructorDescriptionCommandMetadata
(Class<? extends Command> commandClass) Constructs a new metadata object with an empty description.CommandMetadata
(Class<? extends Command> commandClass, String description) Constructs a new metadata object. -
Method Summary
Modifier and TypeMethodDescriptionCommand class getter.Command description getter.void
setDescription
(String description) Sets the description for the command.
-
Constructor Details
-
CommandMetadata
Constructs a new metadata object.- Parameters:
commandClass
- Class of the target command.description
- Brief command description.
-
CommandMetadata
Constructs a new metadata object with an empty description.- Parameters:
commandClass
- Class if the target command.
-
-
Method Details
-
getCommandClass
Command class getter.- Returns:
- Target command class.
-
getDescription
Command description getter.- Returns:
- Target command description.
-
setDescription
Sets the description for the command.- Parameters:
description
- New target command description.
-