Problem with gui


New user
Hi,I'm new on this forum, than you should forgive my errors

My problem is that: When I open custom gui, I have crash and cast exception, but i don't know where.

This is log:

GuiHandler code:

TileEntityGenerator code:

BlockGenerator code:

ContainerGenerator code:

GuiGenerator code:

Thank you for all help!
P.S. Sorry for my bad English

[AH] Discord Widget