Package org.spongepowered.api.command
Interface CommandCompletion
public interface CommandCompletion
A potential completion of a command argument.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA factory for constructingCommandCompletions -
Method Summary
Modifier and TypeMethodDescriptionThe potential completion that this object represents.static CommandCompletionCreates a basic completion that only containsStringthat a given input may be completed to.static CommandCompletionCreates a completion that containsStringthat a given input may be completed to, and an associated tooltip.tooltip()The tooltip that may be displayed by the client when hovering over this completion.
-
Method Details
-
of
Creates a basic completion that only containsStringthat a given input may be completed to.- Parameters:
completion- The potential completion- Returns:
- The
CommandCompletionobject
-
of
Creates a completion that containsStringthat a given input may be completed to, and an associated tooltip.- Parameters:
completion- The potential completiontooltip- The tooltip- Returns:
- The
CommandCompletionobject
-
completion
String completion()The potential completion that this object represents.- Returns:
- The completion
-
tooltip
The tooltip that may be displayed by the client when hovering over this completion.- Returns:
- The tooltip, if any
-