Look into the new api. We barley use the client instance now. They organized the api. So anything inventory related, they have it in the inventory class. Which could be then access with the new inventory instance. Go to the api, and look at the MethodProvider class and youll understand what i mean
for examples:
map.walk......
localWalker.walk........
camera.toEntity........
objects.closest.......