Utils API Reference
The following section outlines the API for PyPixel.utils.
- class HypixelUtils
General utilities relating to Hypixel.
- static parseNBT(raw_data)
Parses NBT data from the API.
- static getRank(data)
Gets a player’s rank from their raw API data.
- Parameters
data (dict) – The player’s raw API data.
- Returns
The player’s rank.
- Return type
Literal[‘Default’, ‘VIP’, ‘VIP+’, ‘MVP’, ‘MVP+’, ‘MVP++’, ‘YouTube’, ‘Helper’, ‘Moderator’, ‘Admin’]
- static guildlevel(xp)
Gets a guild’s level from the guild’s xp.
- static playerLevel(xp)
Gets a player’s network level from their network experience, using the equation
(((2 * xp) + 30625) ^ (1 / 2) / 50) - 2.5
.
- static skywarsLevel(xp)
Gets a player’s SkyWars level from their SkyWars experience.
- static getGameName(game)
New in version 0.1.9.
Gets the name of a Hypixel gamemode from its ID or it’s name in the API.
- class SkyBlockUtils
Utilities relating to Hypixel SkyBlock.
- static getItem(item, *, reverse)
Gets an item name from an item ID.
- static getMinionSlots(crafted)
Gets the number of crafted minion slots a player has.
- static zombieSlayer(xp)
Gets the level for the Zombie slayer from the slayer experience.
- static spiderSlayer(xp)
Gets the level for the Spider slayer from the slayer experience.
- static wolfSlayer(xp)
Gets the level for the Wolf slayer from the slayer experience.
- static slayerLevels(data)
Retrieves a SkyBlock player’s Slayer levels from their profile data.
- static getSkillLevel(xp)
Converts skill XP to a skill level.
- static getRunecraftLevel(xp)
Converts runecrafting skill XP to a skill level.
This is seperate from getSkillLevel because runecrafting has different experience requirements.
- static farmingCollection(data)
Gets a player’s SkyBlock Farming collection from their member data.
- static miningCollection(data)
Gets a player’s SkyBlock Mining collection from their member data.
- static combatCollection(data)
Gets a player’s SkyBlock Combat collection from their member data.
- static foragingCollection(data)
Gets a player’s SkyBlock Foraging collection from their member data.
- static fishingCollection(data)
Gets a player’s SkyBlock Fishing collection from their member data.
- static getCollectionData(data, req_xp, collection, c)
Modifies a collection’s collection data.
- class Items
A class containing all the Hypixel SkyBlock Item IDs.