Expose the state of the loader
This commit is contained in:
parent
c28794fe38
commit
76c7177553
2 changed files with 16 additions and 6 deletions
|
@ -352,4 +352,9 @@ public class LoadController
|
|||
{
|
||||
return accessibleManager.getStackClasses();
|
||||
}
|
||||
|
||||
LoaderState getState()
|
||||
{
|
||||
return state;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1060,4 +1060,9 @@ public class Loader
|
|||
{
|
||||
return injectedAfter.get(modId);
|
||||
}
|
||||
|
||||
public final LoaderState getLoaderState()
|
||||
{
|
||||
return modController != null ? modController.getState() : LoaderState.NOINIT;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue