mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 16:25:36 +00:00
Batch 1 of the API review: one setup entry point, per-pipeline definitions
- IrisModule.setup(ModuleSetup) replaces install(StageGraph) and register(FeatureRegistry); ModuleSetups.run is the host entry point. - The conditional definition variants are gone: a stage body reads the settings it is conditioned on through ctx.configured(Type.class). - Placement, block, chunk and mantle stages each get their own definition interface; chunk definitions offer neither reach nor writesMantle. MantleStage is no longer generic. - softAfter/softBefore take stage constants as well as StageRefs. - A producer that rejected the attempt may return null. - PlacementRunner, ChunkRunner and MantleRunner all take StageTimings. - ConfiguredSettings groups entries by the type that declares @Feature. - README, DESIGN and CONTRACTS updated, with the edge choice table.
This commit is contained in:
1 parent
d3c0e4d6cc
commit
1677f4414b
75 files changed
+1201
-838
No files matched your search
@@ -4,7 +4,7 @@ package com.volmit;
|
||||
* to its own log, so a module never needs a logging library of its own and its lines are easy to find. Each module has
|
||||
* its own: reach it as {@code context.log()} in stage bodies and generators
|
||||
* ({@link com.volmit.generation.InvocationContext#log}), as {@link com.volmit.world.PackWorld#log} in services and
|
||||
* lifecycle hooks, and as {@link FeatureRegistry#log} while the module registers.
|
||||
* lifecycle hooks, and as {@link ModuleSetup#log} during the module's setup.
|
||||
*
|
||||
* <p>Safe to use from any thread. A message is plain text, not a format string.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user