getOpenInventoryType

public static InventoryType getOpenInventoryType(Player player)

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

Return

The open inventory type

Parameters

player

The player