Package top.focess.qq.api.command
Class DataCollection
- java.lang.Object
-
- top.focess.qq.api.command.DataCollection
-
public class DataCollection extends Object
Store and parser arguments for better CommandExecutor usage.
-
-
Constructor Summary
Constructors Constructor Description DataCollection()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidregister(Plugin plugin, top.focess.command.DataConverter<?> dataConverter, top.focess.command.DataCollection.BufferGetter bufferGetter)Register the getter of the bufferstatic voidunregister(top.focess.command.DataConverter<?> dataConverter)Unregister the getter of the bufferstatic voidunregister(Plugin plugin)Unregister the getter of the buffers by pluginstatic booleanunregisterAll()Unregister all the getter of the buffers
-
-
-
Method Detail
-
register
public static void register(Plugin plugin, top.focess.command.DataConverter<?> dataConverter, top.focess.command.DataCollection.BufferGetter bufferGetter)
Register the getter of the buffer- Parameters:
plugin- the plugindataConverter- the buffer data converterbufferGetter- the getter of the buffer
-
unregister
public static void unregister(top.focess.command.DataConverter<?> dataConverter)
Unregister the getter of the buffer- Parameters:
dataConverter- the data converter
-
unregister
public static void unregister(Plugin plugin)
Unregister the getter of the buffers by plugin- Parameters:
plugin- the plugin
-
unregisterAll
public static boolean unregisterAll()
Unregister all the getter of the buffers- Returns:
- true if there are some getter of the buffers not belonging to MainPlugin not been unregistered, false otherwise
-
-