Class PatternArgument
java.lang.Object
com.thevoxelbox.voxelsniper.command.argument.AbstractPatternArgument<Pattern>
com.thevoxelbox.voxelsniper.command.argument.PatternArgument
- All Implemented Interfaces:
VoxelCommandElement
-
Field Summary
Fields inherited from class com.thevoxelbox.voxelsniper.command.argument.AbstractPatternArgument
config, factory, parseExceptionCaptionKey, plugin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getPatternResource
(String input, Pattern pattern) parsePattern
(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, Queue<String> inputQueue) suggestPatterns
(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, String input)
-
Constructor Details
-
PatternArgument
Create a pattern argument.- Parameters:
plugin
- the plugin- Since:
- 3.0.0
-
-
Method Details
-
suggestPatterns
public List<String> suggestPatterns(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, String input) - Overrides:
suggestPatterns
in classAbstractPatternArgument<Pattern>
-
parsePattern
public BrushPattern parsePattern(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, Queue<String> inputQueue) - Overrides:
parsePattern
in classAbstractPatternArgument<Pattern>
-
getPatternResource
- Specified by:
getPatternResource
in classAbstractPatternArgument<Pattern>
-