Added typesafe method to obtain the inventory slots

and reverted the lang Pointer back.