getTopInventory

public static Inventory getTopInventory(Player player)

Get the top inventory of a player. This method uses reflection to get the method, unreflect it, and invoke using a method handle.

Return

The top inventory

Parameters

player

The player