- java.lang.Object
-
- cn.mcres.karlatemp.mxlib.share.Metrics
-
public class Metrics extends Object
bStats collects some data for plugin authors.Check out https://bStats.org/ to learn more about bStats!
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 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.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.
-
字段概要
字段 修饰符和类型 字段 说明 static int
B_STATS_VERSION
-
方法概要
修饰符和类型 方法 说明 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.
-
-
-
字段详细资料
-
B_STATS_VERSION
public static final int B_STATS_VERSION
- 另请参阅:
- 常量字段值
-
-
构造器详细资料
-
Metrics
public Metrics(Plugin plugin)
Class constructor.- 参数:
plugin
- The plugin which stats should be submitted.
-
-
方法详细资料
-
isEnabled
public boolean isEnabled()
Checks if bStats is enabled.- 返回:
- Whether bStats is enabled or not.
-
addCustomChart
public void addCustomChart(Metrics.CustomChart chart)
Adds a custom chart.- 参数:
chart
- The chart to add.
-
getPluginData
public com.google.gson.JsonObject getPluginData()
Gets the plugin specific data. This method is called using Reflection.- 返回:
- The plugin specific data.
-
-