Class StatisticValueProvider
java.lang.Object
me.hsgamer.topper.spigot.value.statistic.StatisticValueProvider
- All Implemented Interfaces:
Function<org.bukkit.entity.Player,
,ValueWrapper<Integer>> ValueProvider<org.bukkit.entity.Player,
Integer>
public final class StatisticValueProvider
extends Object
implements ValueProvider<org.bukkit.entity.Player,Integer>
-
Method Summary
Modifier and TypeMethodDescription@NotNull ValueWrapper
<Integer> apply
(@NotNull org.bukkit.entity.Player player) static ValueProvider
<org.bukkit.entity.Player, Integer> fromRaw
(String statistic, Collection<String> materials, Collection<String> entityTypes) static StatisticValueProvider
of
(org.bukkit.Statistic statistic) static StatisticValueProvider
ofEntity
(org.bukkit.Statistic statistic) static StatisticValueProvider
ofEntity
(org.bukkit.Statistic statistic, Collection<org.bukkit.entity.EntityType> entityTypes) static StatisticValueProvider
ofMaterial
(org.bukkit.Statistic statistic) static StatisticValueProvider
ofMaterial
(org.bukkit.Statistic statistic, Collection<org.bukkit.Material> materials) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.hsgamer.topper.value.core.ValueProvider
keyMapper, thenApply
-
Method Details
-
of
-
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
-
ofEntity
-
fromRaw
public static ValueProvider<org.bukkit.entity.Player,Integer> fromRaw(String statistic, Collection<String> materials, Collection<String> entityTypes) -
apply
@NotNull public @NotNull ValueWrapper<Integer> apply(@NotNull @NotNull org.bukkit.entity.Player player) - Specified by:
apply
in interfaceFunction<org.bukkit.entity.Player,
ValueWrapper<Integer>> - Specified by:
apply
in interfaceValueProvider<org.bukkit.entity.Player,
Integer>
-