Search in sources :

Example 1 with StatsDisplayItem

use of cc.hyperium.handlers.handlers.stats.display.StatsDisplayItem in project Hyperium by HyperiumClient.

the class VampireZStats method getPreview.

@Override
public List<StatsDisplayItem> getPreview(HypixelApiPlayer player) {
    List<StatsDisplayItem> stats = new ArrayList<>();
    JsonHolder vampireZ = player.getStats(GameType.VAMPIREZ);
    stats.add(new DisplayLine(bold("Coins: ", vampireZ.optInt("coins"))));
    return stats;
}
Also used : JsonHolder(cc.hyperium.utils.JsonHolder) DisplayLine(cc.hyperium.handlers.handlers.stats.display.DisplayLine) StatsDisplayItem(cc.hyperium.handlers.handlers.stats.display.StatsDisplayItem) ArrayList(java.util.ArrayList)

Example 2 with StatsDisplayItem

use of cc.hyperium.handlers.handlers.stats.display.StatsDisplayItem in project Hyperium by HyperiumClient.

the class WarlordsStats method getDeepStats.

@Override
public List<StatsDisplayItem> getDeepStats(HypixelApiPlayer player) {
    List<StatsDisplayItem> stats = getPreview(player);
    JsonHolder warlords = player.getStats(GameType.BATTLEGROUND);
    stats.add(new DisplayLine(bold("Wins: ", warlords.optInt("wins"))));
    stats.add(new DisplayLine(bold("K/D: ", WebsiteUtils.buildRatio(warlords.optInt("kills"), warlords.optInt("deaths")))));
    stats.add(new DisplayLine(bold("W/L: ", WebsiteUtils.buildRatio(warlords.optInt("wins"), warlords.optInt("losses")))));
    return stats;
}
Also used : JsonHolder(cc.hyperium.utils.JsonHolder) DisplayLine(cc.hyperium.handlers.handlers.stats.display.DisplayLine) StatsDisplayItem(cc.hyperium.handlers.handlers.stats.display.StatsDisplayItem)

Example 3 with StatsDisplayItem

use of cc.hyperium.handlers.handlers.stats.display.StatsDisplayItem in project Hyperium by HyperiumClient.

the class WarlordsStats method getPreview.

@Override
public List<StatsDisplayItem> getPreview(HypixelApiPlayer player) {
    List<StatsDisplayItem> stats = new ArrayList<>();
    JsonHolder warlords = player.getStats(GameType.BATTLEGROUND);
    stats.add(new DisplayLine(bold("Coins: ", warlords.optInt("coins"))));
    stats.add(new DisplayLine(bold("Kills: ", warlords.optInt("kills"))));
    stats.add(new DisplayLine(bold("Assists: ", warlords.optInt("assists"))));
    stats.add(new DisplayLine(bold("Deaths: ", warlords.optInt("deaths"))));
    return stats;
}
Also used : JsonHolder(cc.hyperium.utils.JsonHolder) DisplayLine(cc.hyperium.handlers.handlers.stats.display.DisplayLine) StatsDisplayItem(cc.hyperium.handlers.handlers.stats.display.StatsDisplayItem) ArrayList(java.util.ArrayList)

Example 4 with StatsDisplayItem

use of cc.hyperium.handlers.handlers.stats.display.StatsDisplayItem in project Hyperium by HyperiumClient.

the class SkyClashStats method getPreview.

@Override
public List<StatsDisplayItem> getPreview(HypixelApiPlayer player) {
    List<StatsDisplayItem> stats = new ArrayList<>();
    JsonHolder skyClash = player.getStats(GameType.SKYCLASH);
    stats.add(new DisplayLine(bold("Coins: ", skyClash.optInt("coins"))));
    stats.add(new DisplayLine(bold("Kills: ", skyClash.optInt("kills"))));
    stats.add(new DisplayLine(bold("Wins: ", skyClash.optInt("wins"))));
    stats.add(new DisplayLine(bold("Deaths: ", skyClash.optInt("deaths"))));
    stats.add(new DisplayLine(bold("Losses: ", skyClash.optInt("losses"))));
    return stats;
}
Also used : JsonHolder(cc.hyperium.utils.JsonHolder) DisplayLine(cc.hyperium.handlers.handlers.stats.display.DisplayLine) StatsDisplayItem(cc.hyperium.handlers.handlers.stats.display.StatsDisplayItem) ArrayList(java.util.ArrayList)

Example 5 with StatsDisplayItem

use of cc.hyperium.handlers.handlers.stats.display.StatsDisplayItem in project Hyperium by HyperiumClient.

the class UHCStats method getDeepStats.

@Override
public List<StatsDisplayItem> getDeepStats(HypixelApiPlayer player) {
    List<StatsDisplayItem> stats = getPreview(player);
    JsonHolder UHC = player.getStats(GameType.UHC);
    stats.add(new DisplayLine(""));
    stats.add(new DisplayLine(bold("Teams", "")));
    stats.add(new DisplayLine(bold("Kills: ", UHC.optInt("kills"))));
    stats.add(new DisplayLine(bold("Deaths: ", UHC.optInt("deaths"))));
    stats.add(new DisplayLine(bold("Wins: ", UHC.optInt("wins"))));
    stats.add(new DisplayLine(bold("K/D: ", WebsiteUtils.buildRatio(UHC.optInt("kills"), UHC.optInt("deaths")))));
    stats.add(new DisplayLine(""));
    stats.add(new DisplayLine(bold("Solo", "")));
    stats.add(new DisplayLine(bold("Kills: ", UHC.optInt("kills_solo"))));
    stats.add(new DisplayLine(bold("Deaths: ", UHC.optInt("deaths_solo"))));
    stats.add(new DisplayLine(bold("Wins: ", UHC.optInt("wins_solo"))));
    stats.add(new DisplayLine(bold("K/D: ", WebsiteUtils.buildRatio(UHC.optInt("kills_solo"), UHC.optInt("deaths_solo")))));
    return stats;
}
Also used : JsonHolder(cc.hyperium.utils.JsonHolder) DisplayLine(cc.hyperium.handlers.handlers.stats.display.DisplayLine) StatsDisplayItem(cc.hyperium.handlers.handlers.stats.display.StatsDisplayItem)

Aggregations

StatsDisplayItem (cc.hyperium.handlers.handlers.stats.display.StatsDisplayItem)45 DisplayLine (cc.hyperium.handlers.handlers.stats.display.DisplayLine)43 JsonHolder (cc.hyperium.utils.JsonHolder)42 ArrayList (java.util.ArrayList)33 DisplayTable (cc.hyperium.handlers.handlers.stats.display.DisplayTable)10 SimpleDateFormat (java.text.SimpleDateFormat)2 Date (java.util.Date)2 GuiBlock (cc.hyperium.gui.GuiBlock)1 Pet (club.sk1er.website.Pet)1 HypixelApiGuild (club.sk1er.website.api.requests.HypixelApiGuild)1 ExecutionException (java.util.concurrent.ExecutionException)1 GameType (net.hypixel.api.GameType)1 ScaledResolution (net.minecraft.client.gui.ScaledResolution)1 DynamicTexture (net.minecraft.client.renderer.texture.DynamicTexture)1