Class BlockTypeArgument
java.lang.Object
com.thevoxelbox.voxelsniper.command.argument.AbstractRegistryArgument<BlockType>
com.thevoxelbox.voxelsniper.command.argument.BlockTypeArgument
- All Implemented Interfaces:
VoxelCommandElement
-
Field Summary
Fields inherited from class com.thevoxelbox.voxelsniper.command.argument.AbstractRegistryArgument
parseExceptionCaptionKey, plugin, registry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparseBlockType
(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, Queue<String> inputQueue) suggestBlockTypes
(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, String input) Methods inherited from class com.thevoxelbox.voxelsniper.command.argument.AbstractRegistryArgument
parseValue, suggestValues
-
Constructor Details
-
BlockTypeArgument
Create a block type argument.- Parameters:
plugin
- the plugin- Since:
- 3.0.0
-
-
Method Details
-
suggestBlockTypes
public List<String> suggestBlockTypes(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, String input) -
parseBlockType
public BlockType parseBlockType(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, Queue<String> inputQueue)
-