mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
Batch 4 of the API review: api and host artifacts, ModuleLoadException
- Split into Gradle subprojects api (com.volmit:iris-api) and host (com.volmit:iris-host). ExposedPackages never exposes com.volmit.host. - One unchecked ModuleLoadException(moduleId, origin, message, cause) for every load error; messages unchanged. - PlacementAccess.set(x, y, z, state) next to set(PlacedBlock). - BlockState: precompiled patterns, withProperty copies once. - Mantle and layer views are made once per invocation. - Hunk getters are width(), height(), depth(). - Held types and host types are deprecated for removal at the cut-over. - Docs: artifacts, one-or-more modules per jar, no option shorthand.
This commit is contained in:
1 parent
3a307b5b8e
commit
b6c2992752
309 files changed
+547
-178
No files matched your search
@@ -0,0 +1,16 @@
|
||||
package com.volmit;
|
||||
|
||||
import com.volmit.stage.StageGraph;
|
||||
|
||||
/** What a module gets in {@link IrisModule#setup}: the stage graph it defines its stages in, the registry for
|
||||
* everything else, and its own log. Stages and registrations are accepted only while {@code setup} runs; the log
|
||||
* may be kept and used later, such as from lifecycle hooks.
|
||||
*/
|
||||
public interface ModuleSetup {
|
||||
StageGraph stages();
|
||||
|
||||
FeatureRegistry registry();
|
||||
|
||||
/** This module's log, the same one its stages and lifecycle hooks see through their world. */
|
||||
ModuleLog log();
|
||||
}
|
||||
Reference in new issue
Block a user