public class Metrics extends Object
Check out https://bStats.org/ to learn more about bStats!
Modifier and Type | Class and Description |
---|---|
static class |
Metrics.AdvancedBarChart
Represents a custom advanced bar chart.
|
static class |
Metrics.AdvancedPie
Represents a custom advanced pie.
|
static class |
Metrics.CustomChart
Represents a custom chart.
|
static class |
Metrics.DrilldownPie
Represents a custom drilldown pie.
|
static class |
Metrics.MultiLineChart
Represents a custom multi line chart.
|
static class |
Metrics.PluginData
Represents a class for taking data about a plugin
|
static class |
Metrics.SimpleBarChart
Represents a custom simple bar chart.
|
static class |
Metrics.SimplePie
Represents a custom simple pie.
|
static class |
Metrics.SingleLineChart
Represents a custom single line chart.
|
Modifier and Type | Field and Description |
---|---|
static int |
B_STATS_VERSION |
Constructor and Description |
---|
Metrics(Metrics.PluginData pluginData) |
Modifier and Type | Method and Description |
---|---|
void |
addCustomChart(Metrics.CustomChart chart)
Adds a custom chart.
|
com.google.gson.JsonObject |
getPluginData()
Gets the plugin specific data.
|
boolean |
isEnabled()
Checks if bStats is enabled.
|
static void |
linkMetrics(Object metrics)
Links an other metrics class with this class.
|
public static final int B_STATS_VERSION
public Metrics(Metrics.PluginData pluginData)
public boolean isEnabled()
public void addCustomChart(Metrics.CustomChart chart)
chart
- The chart to add.public static void linkMetrics(Object metrics)
metrics
- An object of the metrics class to link.public com.google.gson.JsonObject getPluginData()
Copyright © 2020. All rights reserved.