mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-24 00:51:34 +01:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
e2a94d40ae
@ -152,6 +152,16 @@ public final class SchedulerManager implements IExtensionObserver {
|
|||||||
return tasks.values();
|
return tasks.values();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the task associated with this task id
|
||||||
|
*
|
||||||
|
* @param id the id of the task
|
||||||
|
* @return task the task itself
|
||||||
|
*/
|
||||||
|
public Task getTask(int id) {
|
||||||
|
return tasks.get(id);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a {@link Collection} with all the registered shutdown {@link Task}.
|
* Gets a {@link Collection} with all the registered shutdown {@link Task}.
|
||||||
*
|
*
|
||||||
@ -162,6 +172,16 @@ public final class SchedulerManager implements IExtensionObserver {
|
|||||||
return shutdownTasks.values();
|
return shutdownTasks.values();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the shutdown task associated with this task id
|
||||||
|
*
|
||||||
|
* @param id the id of the task
|
||||||
|
* @return task the shutdown task itself
|
||||||
|
*/
|
||||||
|
public Task getShutdownTask(int id) {
|
||||||
|
return shutdownTasks.get(id);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the execution service for all the registered {@link Task}.
|
* Gets the execution service for all the registered {@link Task}.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user