Class Metrics.Factory

java.lang.Object
org.bstats.sponge.Metrics.Factory
Enclosing class:
Metrics

public static class Metrics.Factory extends Object
A factory to create new Metrics classes.
  • Method Details

    • make

      public Metrics make(int serviceId)
      Creates a new Metrics class.
      Parameters:
      serviceId - The id of the service. It can be found at What is my plugin id?

      Not to be confused with Sponge's PluginMetadata.id() method!

      Returns:
      A Metrics instance that can be used to register custom charts.

      The return value can be ignored, when you do not want to register custom charts.