Anvil
Anvil.API.ExpTableExtensions Class Reference

Static Public Member Functions

static ? int GetLevelFromXP (this TwoDimArray< ExpTableEntry > table, int xp)
 Gets the current level for a player with the specified XP. More...
 
static ? uint GetXPFromLevel (this TwoDimArray< ExpTableEntry > table, int level)
 Gets the amount of XP needed for the specified level. More...
 

Member Function Documentation

◆ GetLevelFromXP()

static ? int Anvil.API.ExpTableExtensions.GetLevelFromXP ( this TwoDimArray< ExpTableEntry table,
int  xp 
)
inlinestatic

Gets the current level for a player with the specified XP.

Parameters
tableThe table to lookup.
xpThe amount of xp.

◆ GetXPFromLevel()

static ? uint Anvil.API.ExpTableExtensions.GetXPFromLevel ( this TwoDimArray< ExpTableEntry table,
int  level 
)
inlinestatic

Gets the amount of XP needed for the specified level.

Parameters
tableThe table to lookup.
levelThe level to lookup.

The documentation for this class was generated from the following file: