Interface PluginScheduler
public interface PluginScheduler
A
PluginScheduler is used to schedule tasks for a plugin. A better alternative to Timer.-
Method Summary
Modifier and TypeMethodDescriptionstatic PluginSchedulercreate(MindustryPlugin plugin, PluginTimeSource timeSource, int parallelism) schedule(MindustryPlugin plugin) Returns a newPluginTask.Builderinstance scheduling a task.
-
Method Details
-
create
-
schedule
Returns a newPluginTask.Builderinstance scheduling a task.- Parameters:
plugin- the plugin to schedule the task for.- Returns:
- a new
PluginTask.Builderinstance.
-