Uses of Interface
de.marcely.bedwars.api.player.PlayerStats
-
Uses of PlayerStats in de.marcely.bedwars.api.event.player
Modifier and TypeMethodDescriptionPlayerStatChangeEvent.getStats()
Get thePlayerStats
in which the new value might get setModifierConstructorDescriptionPlayerStatChangeEvent
(PlayerStats playerStats, boolean fromRemote, boolean async, String key, Number previous, Number after) -
Uses of PlayerStats in de.marcely.bedwars.api.player
Modifier and TypeMethodDescription@Nullable PlayerStats
PlayerStats.getGameStats()
Will return the stats of the round that the player currently plays.@Nullable PlayerStats
LeaderboardFetchResult.getStatsAtRank
(int rank) Obtains the stats of the player at the given rank.Modifier and TypeMethodDescriptionPlayerDataAPI.getCachedStats()
Gets a collection of all currently cached player stats.PlayerDataAPI.getStatsCached
(UUID id) Tries to get stats from the cache.default Optional
<PlayerStats> PlayerDataAPI.getStatsCached
(OfflinePlayer player) Tries to get stats from the cache.Modifier and TypeMethodDescriptiondefault void
PlayerStatSet.addValue
(PlayerStats stats, Number amount) Will add value to the current valuePlayerStatSet.getDisplayedValue
(PlayerStats stats) Returns what essentially will be displayed as the valuePlayerStatSet.getValue
(PlayerStats stats) Similar toPlayerStatSet.getDisplayedValue(PlayerStats)
, but as a direct number
Will amongst other things be used for the leaderboarddefault void
PlayerStatSet.setValue
(PlayerStats stats, Number value) Stat can implement this for easier use for others wanting to modify itModifier and TypeMethodDescriptionvoid
PlayerDataAPI.getStats
(UUID id, Consumer<PlayerStats> callback) Tries to fetch the stats of the player.default void
PlayerDataAPI.getStats
(OfflinePlayer player, Consumer<PlayerStats> callback) Tries to fetch the stats of the player.void
PlayerDataAPI.getStatsByName
(String name, Consumer<Optional<PlayerStats>> callback) Tries to fetch the stats of the player given by its name.ModifierConstructorDescriptionLeaderboardFetchResult
(PlayerStatSet statSet, int minRank, int maxRank, PlayerStats[] stats, PlayerProperties[] properties)