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 Summary
FieldsFields inherited from class xyz.srnyx.annoyingapi.stats.loader.StatsLoader
stats -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull dev.faststats.data.Metric<Boolean[]> booleanArray(@NotNull String id, @NotNull Callable<@Nullable Collection<Boolean>> callable) static @NotNull dev.faststats.data.Metric<String[]> enumArray(@NotNull String id, @NotNull Callable<@Nullable Collection<? extends Enum<?>>> callable) voidload()voidmutateContextFactory(dev.faststats.bukkit.BukkitContext.Factory factory) Do not useSimpleContext.Factory.metrics(Function),SimpleContext.Factory.featureFlagService(Function), or other similar service creators unless you want to overwrite the default ones the API creates!voidmutateFeatureFlagService(dev.faststats.FeatureFlagService.Factory factory) voidmutateMetricsFactory(dev.faststats.Metrics.Factory factory) static @NotNull dev.faststats.data.Metric<Number[]> numberArray(@NotNull String id, @NotNull Callable<@Nullable Collection<Number>> callable) voidonFlush()Do not useBukkitMetrics.Factory.onFlush(Runnable)unless you want to overwrite the default one the API creates (may break some metrics)!static @NotNull dev.faststats.data.Metric<String[]> stringArray(@NotNull String id, @NotNull Callable<@Nullable Collection<String>> callable) voidunload()Methods inherited from class xyz.srnyx.annoyingapi.stats.loader.StatsLoader
getIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface xyz.srnyx.annoyingapi.parents.Annoyable
getAnnoyingPlugin
-
Field Details
-
errorTracker
@NotNull public final @NotNull dev.faststats.ErrorTracker errorTracker
-
-
Constructor Details
-
FastStatsLoader
public FastStatsLoader()
-
-
Method Details
-
getConfigs
-
onFlush
public void onFlush()Do not useBukkitMetrics.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 useSimpleContext.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:
loadin classStatsLoader<String,dev.faststats.bukkit.BukkitContext>
-
unload
public void unload()- Overrides:
unloadin classStatsLoader<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)
-