mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
- 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.
19 lines
642 B
Java
19 lines
642 B
Java
package com.volmit;
|
|
|
|
import com.volmit.config.PackSettings;
|
|
import com.volmit.resource.PackResources;
|
|
|
|
/** A pack snapshot the host loaded, as {@link ModuleLifecycle#packLoaded} sees it. Do not retain it after the hook
|
|
* returns: what a module builds from it for a world belongs in that world's state.
|
|
*/
|
|
public interface PackContext {
|
|
/** The snapshot's resources. */
|
|
PackResources resources();
|
|
|
|
/** Every settings entry of every dimension, region and biome of the pack, as validators see them. */
|
|
PackSettings settings();
|
|
|
|
/** The log of the module the hook belongs to, labelled with its id. */
|
|
ModuleLog log();
|
|
}
|