Well, useful. I decompiled mod advinv(forgive me, the author) and there was watching how it's done. Now I already know how to solve my problem, but there are a couple BUT. If you press in the container stored on the subject then he abruptly tosses the hot bar, and not taken to the cursor. Also in the inventory there are duplicates, very strange. Ie if I click on the last slot of the first row, then I take the pants from slots of armor, and if I click on the bottom line will take things from the hot bar, in the tabs I clean the slots and render for a specific GUI, what is the reason. And last question, can I use the same class (ExtendedPlayer implements ICapabilitySerializable, IInventory) for other containers? Thank you for responding to the call of help!