Package org.spongepowered.api
Interface Engine
- All Superinterfaces:
- RegistryHolder
- All Known Subinterfaces:
- Client,- LocalServer,- Server
- 
Method SummaryModifier and TypeMethodDescriptionGets theCauseStackManagerfor handling the current event cause stack and context information.game()Gets theGamethat launched this engine;booleanChecks if thecurrent threadis the main thread of the engine.Methods inherited from interface org.spongepowered.api.registry.RegistryHolderfindRegistry, registry, streamRegistries
- 
Method Details- 
gameGame game()Gets theGamethat launched this engine;- Returns:
- The game
 
- 
causeStackManagerCauseStackManager causeStackManager()Gets theCauseStackManagerfor handling the current event cause stack and context information.- Returns:
- The cause stack manager
 
- 
packRepositoryPackRepository packRepository()- Returns:
- The pack repository
 
- 
resourceManagerResourceManager resourceManager()- Returns:
- The resource manager
 
- 
schedulerScheduler scheduler()- Returns:
- The sync scheduler
 
- 
onMainThreadboolean onMainThread()Checks if thecurrent threadis the main thread of the engine.- Returns:
- trueif main thread,- falseif not
 
- 
reloadResourcesCompletableFuture<Void> reloadResources()Rediscovers allresourceswithin allpack'scontents.On the server, the future will always be completed. - Returns:
- A future that completes when reloading is complete
 
 
-