data get entity PLAYER replacement for Folia (+ purge inventory slots via command)
Welcome to your new project!
Commands
Get NBT object of player inventory:
getinv PLAYER
Get NBT object of player ender chest:
getinv PLAYER end
Purge player's ender chest slot 0:
airinv PLAYER 0 end
SimplyVanilla
Netherwhal