Rewrote Stat Spy

Refactored lunar spell handlers
This commit is contained in:
bushtail
2023-10-12 01:43:43 +00:00
committed by Ryan
parent 1913d0c83f
commit 9989ee9905
4 changed files with 441 additions and 405 deletions
+9
View File
@@ -2996,4 +2996,13 @@ fun calculateDragonfireMaxHit(entity: Entity, maxDamage: Int, wyvern: Boolean =
return Math.max(unprotectableDamage, effectiveDamage.toInt())
}
/**
* Opens a single interface tab from given ID.
* @param player the player to open interface for
* @param component the component ID to open
*/
fun openSingleTab(player: Player, component: Int) {
player.interfaceManager.openSingleTab(Component(component))
}
private class ContentAPI