Class Metrics.PluginData

  • Enclosing class:
    Metrics

    public static class Metrics.PluginData
    extends java.lang.Object
    Represents a class for taking data about a plugin
    • Constructor Summary

      Constructors 
      Constructor Description
      PluginData​(java.lang.Object pluginInstance, com.velocitypowered.api.proxy.ProxyServer server, org.slf4j.Logger logger)
      Creates a plugin data
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.file.Path getDataFolder()  
      org.slf4j.Logger getLogger()  
      java.lang.Object getPluginInstance()  
      com.google.gson.JsonObject getSent​(com.google.gson.JsonArray customCharts)  
      com.velocitypowered.api.proxy.ProxyServer getServer()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PluginData

        public PluginData​(java.lang.Object pluginInstance,
                          com.velocitypowered.api.proxy.ProxyServer server,
                          org.slf4j.Logger logger)
        Creates a plugin data
        Parameters:
        pluginInstance - plugin instance
        server - server instance
        logger - plugin logger
    • Method Detail

      • getSent

        public com.google.gson.JsonObject getSent​(com.google.gson.JsonArray customCharts)
      • getServer

        public com.velocitypowered.api.proxy.ProxyServer getServer()
      • getLogger

        public org.slf4j.Logger getLogger()
      • getPluginInstance

        public java.lang.Object getPluginInstance()
      • getDataFolder

        public java.nio.file.Path getDataFolder()