Expose the state of the loader

This commit is contained in:
cpw 2015-05-07 14:17:45 -04:00
parent c28794fe38
commit 76c7177553
2 changed files with 16 additions and 6 deletions

View file

@ -352,4 +352,9 @@ public class LoadController
{
return accessibleManager.getStackClasses();
}
LoaderState getState()
{
return state;
}
}

View file

@ -1060,4 +1060,9 @@ public class Loader
{
return injectedAfter.get(modId);
}
public final LoaderState getLoaderState()
{
return modController != null ? modController.getState() : LoaderState.NOINIT;
}
}