All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.shynixn.petblocks.sponge.logic.business.dependency.Metrics Maven / Gradle / Ivy

Go to download

PetBlocks is a spigot and also a sponge plugin to use blocks and custom heads as pets in Minecraft.

There is a newer version: 8.29.0
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy