Controllers
The Simplest structure of a Phantom Plugin
Phantom plugins are designed by controllers. Controllers are very simple and nature, yet can be extremley powerful if used correctly. Here is the basic model of a controller
Controller Structure
Controllers are structured as shown above. A controller is a generic interface used for controlling objects sort of like "sub-plugins". A controller has several attirbutes.
- A controller can belong to a parent controller (plugin, controller, or null if is plugin)
- A Controller can contain sub controllers which are started before the current controller is
- A Controller can start, and stop
- A Controller can also reload, restarting all of its subcontrollers along with itself
- A Controller can also be ticked with the @Ticked annotation