Class AbstractRegistryArgument<T extends Keyed>
java.lang.Object
com.thevoxelbox.voxelsniper.command.argument.AbstractRegistryArgument<T>
- All Implemented Interfaces:
- VoxelCommandElement
- Direct Known Subclasses:
- BiomeTypeArgument,- BlockTypeArgument,- EntityTypeArgument
public abstract class AbstractRegistryArgument<T extends Keyed>
extends Object
implements VoxelCommandElement
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Stringprotected final VoxelSniperPluginprotected final NamespacedRegistry<T> 
- 
Constructor SummaryConstructorsConstructorDescriptionAbstractRegistryArgument(VoxelSniperPlugin plugin, NamespacedRegistry<T> registry, String parseExceptionCaptionKey) Create an abstract pattern argument.
- 
Method SummaryModifier and TypeMethodDescriptionprotected TparseValue(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, Queue<String> inputQueue) suggestValues(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, String input) 
- 
Field Details- 
plugin
- 
registry
- 
parseExceptionCaptionKey
 
- 
- 
Constructor Details- 
AbstractRegistryArgumentpublic AbstractRegistryArgument(VoxelSniperPlugin plugin, NamespacedRegistry<T> registry, String parseExceptionCaptionKey) Create an abstract pattern argument.- Parameters:
- plugin- the plugin
- registry- the registry
- parseExceptionCaptionKey- the parse exception caption key
- Since:
- 3.0.0
 
 
- 
- 
Method Details- 
suggestValuesprotected List<String> suggestValues(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, String input) 
- 
parseValueprotected T parseValue(cloud.commandframework.context.CommandContext<SniperCommander> commandContext, Queue<String> inputQueue) 
 
-