| Modifier and Type | Class and Description |
|---|---|
static class |
Metrics2.AdvancedBarChart
Represents a custom advanced bar chart.
|
static class |
Metrics2.AdvancedPie
Represents a custom advanced pie.
|
static class |
Metrics2.CustomChart
Represents a custom chart.
|
static class |
Metrics2.DrilldownPie
Represents a custom drilldown pie.
|
static class |
Metrics2.MultiLineChart
Represents a custom multi line chart.
|
static class |
Metrics2.SimpleBarChart
Represents a custom simple bar chart.
|
static class |
Metrics2.SimplePie
Represents a custom simple pie.
|
static class |
Metrics2.SingleLineChart
Represents a custom single line chart.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
B_STATS_CLASS_REVISION |
static int |
B_STATS_VERSION |
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomChart(Metrics2.CustomChart chart)
Adds a custom chart.
|
void |
cancel()
Cancels this instance's scheduled data sending.
|
List<Metrics> |
getKnownMetricsInstances()
Gets all metrics instances known to this instance.
|
org.spongepowered.api.plugin.PluginContainer |
getPluginContainer()
Gets the plugin container for this instance.
|
com.google.gson.JsonObject |
getPluginData()
Gets the plugin specific data
|
int |
getRevision()
Gets the revision of this bStats instance.
|
void |
linkMetrics(Metrics metrics)
Links an other metrics class with this class.
|
void |
startup(org.spongepowered.api.event.game.state.GamePreInitializationEvent event) |
public static final int B_STATS_VERSION
public static final int B_STATS_CLASS_REVISION
public void startup(org.spongepowered.api.event.game.state.GamePreInitializationEvent event)
public void cancel()
Metricspublic List<Metrics> getKnownMetricsInstances()
MetricsgetKnownMetricsInstances in interface Metricspublic org.spongepowered.api.plugin.PluginContainer getPluginContainer()
MetricsgetPluginContainer in interface Metricspublic int getRevision()
MetricsgetRevision in interface Metricspublic void linkMetrics(Metrics metrics)
linkMetrics in interface Metricsmetrics - An object of the metrics class to link.public void addCustomChart(Metrics2.CustomChart chart)
chart - The chart to add.public com.google.gson.JsonObject getPluginData()
MetricsgetPluginData in interface MetricsCopyright © 2017–2019. All rights reserved.