Package org.bstats.velocity
Class Metrics.Factory
- java.lang.Object
-
- org.bstats.velocity.Metrics.Factory
-
- Enclosing class:
- Metrics
public static class Metrics.Factory extends java.lang.ObjectA factory to create new Metrics classes.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Metricsmake(java.lang.Object plugin, int serviceId)Creates a new Metrics class.
-
-
-
Method Detail
-
make
public Metrics make(java.lang.Object plugin, int serviceId)
Creates a new Metrics class.- Parameters:
plugin- The plugin instance.serviceId- The id of the service. It can be found at What is my plugin id?Not to be confused with Velocity's
PluginDescription.getId()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.
-
-