This is a server-side utility for charging items with batteries using an anvil, by placing the item in the first slot of the anvil GUI and leaving the second one empty.
The XP cost is configurable and proportional to the energy required and does not depend on the current level of the player. The default value is 2k units of energy for each XP.
It works on all items conforming to the SimpleBatteryItem interface from the Fabric/TechReborn Energy API.
I made this utility so that mods like St'ructure Tools could be played without having to install tech mods.

