Class AbstractFileArgument
java.lang.Object
com.thevoxelbox.voxelsniper.command.argument.AbstractFileArgument
- All Implemented Interfaces:
VoxelCommandElement
- Direct Known Subclasses:
SignFileArgument
,StencilFileArgument
,StencilListFileArgument
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAbstractFileArgument
(VoxelSniperPlugin plugin, Path rootPath, String extension) Create an abstract file argument. -
Method Summary
Modifier and TypeMethodDescriptionprotected File
parseFile
(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, Queue<String> inputQueue) suggestFiles
(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, String input)
-
Field Details
-
plugin
-
rootPath
-
extension
-
-
Constructor Details
-
AbstractFileArgument
Create an abstract file argument.- Parameters:
plugin
- the pluginrootPath
- the root pathextension
- the extension- Since:
- 3.0.0
-
-
Method Details
-
suggestFiles
protected List<String> suggestFiles(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, String input) -
parseFile
protected File parseFile(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, Queue<String> inputQueue)
-