I would like to refactor some code around job actions before adding code to allow for a "craft" action. This would allow me to add crafting-related code without making the code messy.
I would like to do the following:
Refactor job actions into multiple classes AbstractAction, BreakAction, FishAction, etc.
Refactor loading of the job actions
~Create CraftItemAction which then should be able to differ between items by ID and specified keys~ Better to do that in a dedicated PR.
Refactor break, place, ... listeners into custom watcher classes to move the code out of the JobManager
I would like to refactor some code around job actions before adding code to allow for a "craft" action. This would allow me to add crafting-related code without making the code messy.
I would like to do the following:
AbstractAction
,BreakAction
,FishAction
, etc.CraftItemAction
which then should be able to differ between items by ID and specified keys~ Better to do that in a dedicated PR.break
,place
, ... listeners into custom watcher classes to move the code out of theJobManager
Comments? @Erigitic ?