Class BlockArgument
java.lang.Object
com.thevoxelbox.voxelsniper.command.argument.AbstractPatternArgument<BaseBlock>
com.thevoxelbox.voxelsniper.command.argument.BlockArgument
- 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, BaseBlock pattern) parseBlock
(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, Queue<String> inputQueue) suggestBlocks
(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, String input) Methods inherited from class com.thevoxelbox.voxelsniper.command.argument.AbstractPatternArgument
parsePattern, suggestPatterns
-
Constructor Details
-
BlockArgument
Create a block argument.- Parameters:
plugin
- the plugin- Since:
- 3.0.0
-
-
Method Details
-
suggestBlocks
public List<String> suggestBlocks(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, String input) -
parseBlock
public BrushPattern parseBlock(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, Queue<String> inputQueue) -
getPatternResource
- Specified by:
getPatternResource
in classAbstractPatternArgument<BaseBlock>
-