Class TopQueryManager
- java.lang.Object
-
- me.hsgamer.topper.query.core.QueryManager<K,V,H,A>
-
- me.hsgamer.topper.query.snapshot.SnapshotQueryManager<UUID,Double,NumberTopHolder,org.bukkit.OfflinePlayer>
-
- me.hsgamer.topper.spigot.plugin.manager.TopQueryManager
-
public class TopQueryManager extends SnapshotQueryManager<UUID,Double,NumberTopHolder,org.bukkit.OfflinePlayer>
-
-
Constructor Summary
Constructors Constructor Description TopQueryManager(TopperPlugin instance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull String
getDisplayKey(@Nullable UUID key, @NotNull NumberTopHolder holder)
protected @NotNull String
getDisplayName(@Nullable UUID key, @NotNull NumberTopHolder holder)
protected @NotNull String
getDisplayValue(@Nullable Double value, @NotNull NumberTopHolder holder, @NotNull String args)
protected Optional<NumberTopHolder>
getHolder(String name)
protected @NotNull UUID
getKeyFromActor(@NotNull org.bukkit.OfflinePlayer actor)
protected @NotNull SnapshotAgent<UUID,Double>
getSnapshotAgent(@NotNull NumberTopHolder holder)
-
Methods inherited from class me.hsgamer.topper.query.core.QueryManager
get, registerAction, registerActorFunction, registerFunction
-
-
-
-
Constructor Detail
-
TopQueryManager
public TopQueryManager(TopperPlugin instance)
-
-
Method Detail
-
getHolder
protected Optional<NumberTopHolder> getHolder(String name)
- Specified by:
getHolder
in classQueryManager<UUID,Double,NumberTopHolder,org.bukkit.OfflinePlayer>
-
getSnapshotAgent
@NotNull protected @NotNull SnapshotAgent<UUID,Double> getSnapshotAgent(@NotNull @NotNull NumberTopHolder holder)
- Specified by:
getSnapshotAgent
in classSnapshotQueryManager<UUID,Double,NumberTopHolder,org.bukkit.OfflinePlayer>
-
getDisplayName
@NotNull protected @NotNull String getDisplayName(@Nullable @Nullable UUID key, @NotNull @NotNull NumberTopHolder holder)
- Specified by:
getDisplayName
in classSnapshotQueryManager<UUID,Double,NumberTopHolder,org.bukkit.OfflinePlayer>
-
getDisplayValue
@NotNull protected @NotNull String getDisplayValue(@Nullable @Nullable Double value, @NotNull @NotNull NumberTopHolder holder, @NotNull @NotNull String args)
- Specified by:
getDisplayValue
in classSnapshotQueryManager<UUID,Double,NumberTopHolder,org.bukkit.OfflinePlayer>
-
getDisplayKey
@NotNull protected @NotNull String getDisplayKey(@Nullable @Nullable UUID key, @NotNull @NotNull NumberTopHolder holder)
- Specified by:
getDisplayKey
in classSnapshotQueryManager<UUID,Double,NumberTopHolder,org.bukkit.OfflinePlayer>
-
getKeyFromActor
@NotNull protected @NotNull UUID getKeyFromActor(@NotNull @NotNull org.bukkit.OfflinePlayer actor)
- Specified by:
getKeyFromActor
in classSnapshotQueryManager<UUID,Double,NumberTopHolder,org.bukkit.OfflinePlayer>
-
-