Class StatisticValueProvider

java.lang.Object
me.hsgamer.topper.spigot.value.statistic.StatisticValueProvider
All Implemented Interfaces:
Function<org.bukkit.entity.Player,me.hsgamer.topper.value.core.ValueWrapper<Integer>>, me.hsgamer.topper.value.core.ValueProvider<org.bukkit.entity.Player,Integer>

public final class StatisticValueProvider extends Object implements me.hsgamer.topper.value.core.ValueProvider<org.bukkit.entity.Player,Integer>
  • Method Details

    • of

      public static StatisticValueProvider of(org.bukkit.Statistic statistic)
    • ofMaterial

      public static StatisticValueProvider ofMaterial(org.bukkit.Statistic statistic, Collection<org.bukkit.Material> materials)
    • ofEntity

      public static StatisticValueProvider ofEntity(org.bukkit.Statistic statistic, Collection<org.bukkit.entity.EntityType> entityTypes)
    • ofMaterial

      public static StatisticValueProvider ofMaterial(org.bukkit.Statistic statistic)
    • ofEntity

      public static StatisticValueProvider ofEntity(org.bukkit.Statistic statistic)
    • fromRaw

      public static me.hsgamer.topper.value.core.ValueProvider<org.bukkit.entity.Player,Integer> fromRaw(String statistic, Collection<String> materials, Collection<String> entityTypes)
    • apply

      @NotNull public @NotNull me.hsgamer.topper.value.core.ValueWrapper<Integer> apply(@NotNull @NotNull org.bukkit.entity.Player player)
      Specified by:
      apply in interface Function<org.bukkit.entity.Player,me.hsgamer.topper.value.core.ValueWrapper<Integer>>
      Specified by:
      apply in interface me.hsgamer.topper.value.core.ValueProvider<org.bukkit.entity.Player,Integer>