com.github.shynixn.petblocks.sponge.logic.business.dependency.Metrics Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of petblocks-sponge-plugin Show documentation
Show all versions of petblocks-sponge-plugin Show documentation
PetBlocks is a spigot and also a sponge plugin to use blocks and custom heads as pets in Minecraft.
package com.github.shynixn.petblocks.sponge.logic.business.dependency;
import com.google.gson.JsonObject;
import org.spongepowered.api.plugin.PluginContainer;
import java.util.List;
public interface Metrics {
/**
* Cancels this instance's scheduled data sending.
*/
void cancel();
/**
* Gets all metrics instances known to this instance.
* For taking over if replacing an older version.
*
* @return all known metrics instances to this instance
*/
List getKnownMetricsInstances();
/**
* Gets the plugin specific data
*
* @return the plugin specific data or null if failure to acquire
*/
JsonObject getPluginData();
/**
* Gets the plugin container for this instance.
*
* @return plugin container
*/
PluginContainer getPluginContainer();
/**
* Gets the revision of this bStats instance.
*
* @return revision
*/
int getRevision();
/**
* Links another metrics instance to this one, which should be the master instance.
*
* @param metrics metrics instance
*/
void linkMetrics(Metrics metrics);
}