So i have a pretty basic request for my firstever forgemod. I want to have an event handler which is called whenever a book is opened on the client (as in the gui is brought up). Whenever this happens, I want to find the contents of the opened page (there will only be 1 page). Coming from a bukkit background, my first instinct was to take a GuiOpenEvent and cast the gui passed through as a BookGui, but the IDE seems to not be too enthusiastic about that.
I expect this is a pretty basic question so apologies for seeming a bit stupid :(