mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 00:34:19 +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,18 @@
|
||||
package com.volmit;
|
||||
|
||||
/** A unit of world-generation behavior. The core engine is an ordinary module too.
|
||||
*
|
||||
* <p>In a pack's module jar this class is the entry point. The jar names it in
|
||||
* {@code META-INF/services/com.volmit.IrisModule}, one entry class per line, and it needs a public no-argument
|
||||
* constructor. A jar holds one or more modules.
|
||||
*/
|
||||
public interface IrisModule {
|
||||
ModuleInfo info();
|
||||
|
||||
/** Defines this module's stages and registers its other contributions (geometry generators, mantle layers,
|
||||
* settings no stage names, pack resource kinds, validators, lifecycle hooks and services), before settings are
|
||||
* decoded or generation starts. Called once per pack load, in any order relative to other modules; stage bodies
|
||||
* must not capture per-invocation state.
|
||||
*/
|
||||
void setup(ModuleSetup setup);
|
||||
}
|
||||
Reference in new issue
Block a user