Class DataCollection


  • public class DataCollection
    extends Object
    Store and parser arguments for better CommandExecutor usage.
    • Constructor Detail

      • DataCollection

        public DataCollection()
    • 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 plugin
        dataConverter - the buffer data converter
        bufferGetter - 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