use of cc.hyperium.mods.levelhead.display.DisplayConfig in project Hyperium by HyperiumClient.
the class Levelhead method refreshPurchaseStates.
public synchronized void refreshPurchaseStates() {
purchaseStatus = new LevelheadJsonHolder(rawWithAgent("https://api.sk1er.club/levelhead_purchase_status/" + Minecraft.getMinecraft().getSession().getProfile().getId().toString()));
levelheadPurchaseStates.setChat(purchaseStatus.optBoolean("chat"));
levelheadPurchaseStates.setTab(purchaseStatus.optBoolean("tab"));
levelheadPurchaseStates.setExtraHead(purchaseStatus.optInt("head"));
DisplayManager displayManager = this.displayManager;
while (displayManager.getAboveHead().size() <= levelheadPurchaseStates.getExtraHead()) {
displayManager.getAboveHead().add(new AboveHeadDisplay(new DisplayConfig()));
}
displayManager.adjustIndexes();
}
Aggregations