Class SpongePlatform
java.lang.Object
io.github.projectunified.faststats.sponge.SpongePlatform
- All Implemented Interfaces:
Platform
-
Constructor Summary
ConstructorsConstructorDescriptionSpongePlatform(org.spongepowered.plugin.PluginContainer plugin, org.apache.logging.log4j.Logger logger, Path dataDirectory) Constructs a newSpongePlatformfor the given plugin container. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the platform-specific configuration.Collection<Metric<?>> Gets default platform-specific metrics.voidLogs error messages.voidLogs informational messages.voidlogWarning(String message) Logs warning messages.
-
Constructor Details
-
SpongePlatform
public SpongePlatform(org.spongepowered.plugin.PluginContainer plugin, org.apache.logging.log4j.Logger logger, Path dataDirectory) Constructs a newSpongePlatformfor the given plugin container.- Parameters:
plugin- the plugin containerlogger- the logger instancedataDirectory- the data directory
-
-
Method Details
-
getConfig
-
getMetrics
Description copied from interface:PlatformGets default platform-specific metrics.- Specified by:
getMetricsin interfacePlatform- Returns:
- a collection of platform metrics
-
logInfo
-
logWarning
Description copied from interface:PlatformLogs warning messages.- Specified by:
logWarningin interfacePlatform- Parameters:
message- the message to log
-
logError
-