Class AbstractPatternArgument<T extends Pattern>
java.lang.Object
com.thevoxelbox.voxelsniper.command.argument.AbstractPatternArgument<T>
- All Implemented Interfaces:
VoxelCommandElement
- Direct Known Subclasses:
BlockArgument
,PatternArgument
public abstract class AbstractPatternArgument<T extends Pattern>
extends Object
implements VoxelCommandElement
-
Field Summary
Modifier and TypeFieldDescriptionprotected final VoxelSniperConfig
protected final AbstractFactory
<T> protected final String
protected final VoxelSniperPlugin
-
Constructor Summary
ConstructorDescriptionAbstractPatternArgument
(VoxelSniperPlugin plugin, AbstractFactory<T> factory, String parseExceptionCaptionKey) Create an abstract pattern argument. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
getPatternResource
(String input, T pattern) protected BrushPattern
parsePattern
(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, Queue<String> inputQueue) suggestPatterns
(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, String input)
-
Field Details
-
plugin
-
config
-
factory
-
parseExceptionCaptionKey
-
-
Constructor Details
-
AbstractPatternArgument
public AbstractPatternArgument(VoxelSniperPlugin plugin, AbstractFactory<T> factory, String parseExceptionCaptionKey) Create an abstract pattern argument.- Parameters:
plugin
- the pluginfactory
- the factoryparseExceptionCaptionKey
- the parse exception caption key- Since:
- 3.0.0
-
-
Method Details
-
suggestPatterns
protected List<String> suggestPatterns(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, String input) -
parsePattern
protected BrushPattern parsePattern(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, Queue<String> inputQueue) -
getPatternResource
-