So, I was wondering if this was possible. I'm gonna use Der Pavlov's Cannon Plugin for an example. Lets say I made a cannon. Is it possible, when a player right clicks on it, that it opens the chest GUI? If so, how would this be done?
Hm, it would be very complicated, but maybe have your cannon class implement inventory and extend entity? So when you right click it, it throws a playerInteractEntityEvent, which you can then handle to have it open the inventory associated with it?