Class FastStatsLoader

java.lang.Object
xyz.srnyx.annoyingapi.stats.loader.StatsLoader<String,dev.faststats.bukkit.BukkitContext>
xyz.srnyx.annoyingapi.stats.loader.FastStatsLoader
All Implemented Interfaces:
Annoyable

public abstract class FastStatsLoader extends StatsLoader<String,dev.faststats.bukkit.BukkitContext>
  • Field Details

    • errorTracker

      @NotNull public final @NotNull dev.faststats.ErrorTracker errorTracker
  • Constructor Details

    • FastStatsLoader

      public FastStatsLoader()
  • Method Details

    • getConfigs

      @Nullable public @Nullable Map<String,Supplier<eu.okaeri.configs.OkaeriConfig>> getConfigs()
    • onFlush

      public void onFlush()
      Do not use BukkitMetrics.Factory.onFlush(Runnable) unless you want to overwrite the default one the API creates (may break some metrics)!
    • mutateContextFactory

      public void mutateContextFactory(@NotNull dev.faststats.bukkit.BukkitContext.Factory factory)
      Do not use SimpleContext.Factory.metrics(Function), SimpleContext.Factory.featureFlagService(Function), or other similar service creators unless you want to overwrite the default ones the API creates!
    • mutateMetricsFactory

      public void mutateMetricsFactory(@NotNull dev.faststats.Metrics.Factory factory)
    • mutateFeatureFlagService

      public void mutateFeatureFlagService(@NotNull dev.faststats.FeatureFlagService.Factory factory)
    • load

      public void load()
      Specified by:
      load in class StatsLoader<String,dev.faststats.bukkit.BukkitContext>
    • unload

      public void unload()
      Overrides:
      unload in class StatsLoader<String,dev.faststats.bukkit.BukkitContext>
    • stringArray

      @NotNull public static @NotNull dev.faststats.data.Metric<String[]> stringArray(@NotNull @NotNull String id, @NotNull @NotNull Callable<@Nullable Collection<String>> callable)
    • enumArray

      @NotNull public static @NotNull dev.faststats.data.Metric<String[]> enumArray(@NotNull @NotNull String id, @NotNull @NotNull Callable<@Nullable Collection<? extends Enum<?>>> callable)
    • booleanArray

      @NotNull public static @NotNull dev.faststats.data.Metric<Boolean[]> booleanArray(@NotNull @NotNull String id, @NotNull @NotNull Callable<@Nullable Collection<Boolean>> callable)
    • numberArray

      @NotNull public static @NotNull dev.faststats.data.Metric<Number[]> numberArray(@NotNull @NotNull String id, @NotNull @NotNull Callable<@Nullable Collection<Number>> callable)