19.04.2016, 15:54
@dusk: of course, modules help to separate your app logic, but you are making it more painful cause you have to create an intermediate API (as you did).
As work a around, there are packages which you can treat as "modules". E.g. you have to create module for player, vehicle, house and ui (textdraws). So you create a project with com.web-site.mygamemode package. Inside this package you create packages: player, vehicle, house, ui. Then you have your components logically separated. It's obvious, that house component depends on a player, also, player component can depend on house. Same happens for vehicle.
In my opinion, it's much more better structure then create relatively small modules that depend on each other... even though you should bother with their connection.
Anyway, it's your decision I just wanted to express my opinion and (maybe) to help you in some way
As work a around, there are packages which you can treat as "modules". E.g. you have to create module for player, vehicle, house and ui (textdraws). So you create a project with com.web-site.mygamemode package. Inside this package you create packages: player, vehicle, house, ui. Then you have your components logically separated. It's obvious, that house component depends on a player, also, player component can depend on house. Same happens for vehicle.
In my opinion, it's much more better structure then create relatively small modules that depend on each other... even though you should bother with their connection.
Anyway, it's your decision I just wanted to express my opinion and (maybe) to help you in some way