Thanks for the advice, that's the aproach I was looking for.
But how I draw the 'slots and contents'
Right know adding slots in MyContainer constructor, like all tutorials say.
...
add player inventory slots
...
add chest slots:
addSlotToContainer(new Slot(chest, i, 8 + 18 * x, 18 + 18 * y));
How can I draw dynamically the slots in MyGuiContainer? And I suppose I will need to add and remove the slots on every scroll update.
Thanks!!