The open (type, attributes) shape promised markers the host refused at
runtime. PackMarker, TreeMaterial and BuriedTreasure make an unkept
marker a compile error and remove the shared id strings.
The varargs over a generic Class made every caller compile with an
unchecked generic array warning. One type per call matches
registerResourceKind and registerValidator.
The highest block of a column is highest(x, z, ignoreFluid) wherever it is
asked, and a sapling's surroundings read a block with get like every other
block view. The registry's property change is withPropertyIfAccepted, as it
checks the block and keeps a content plugin's block, unlike
BlockState.withProperty. BlockView no longer links the removed
PlacementContext.blocks().
JsonText only reads now; splicing text is the host's, as the studio makes
every write. JsonPath steps are a sealed Key or Index. Absent values are
empty instead of -1 or blank: GraphNode.part, BlockPattern.pickAt and the
entries' group. GraphNode's child list, movability and additions are one
Edits record.
README and DESIGN describe the tooling package, CONTRACTS maps it, and the
docs no longer name the types the last batch removed.
The object generator registration (registerObject, ObjectGenerator,
ObjectGeneratorFactory, ObjectGenerationContext, FeatureRole): the host
catalogued generators but never called one. PlacementContext.objects()
with ObjectTransformer and ObjectTransform, PlacementContext.blocks()
(placementTerrain() answers the same), BlockPalette,
EntitySpec.extensions and Reference.BIOME go too.
JsonText parses a pack file and splices it while keeping its formatting
(v3e's JsonSource). EditableSceneView tells the studio which file an
entry is written in and reads that file as a NodeGraph: nodes at JSON
paths with their part id, roles, settings types and what can be added.
A StudioView is now either a SceneView (block scenes) or a PatternView:
entries a module lays out from above, one block per column, at a depth
below the top, over a PatternArea. BlockPattern holds the picks and the
blocks they index. Both kinds register through ToolingRegistry.registerView
and share one id space in the host.
ModuleSetup.tooling() gives a ToolingRegistry, where a module registers
SceneViews: a catalogue of entries, each with variants the studio draws
in 3D, built from the pack for a world. View ids follow the module's id
and are unique; the frozen catalogue lists them by id.
BlockRegistry.withProperty returns the state unchanged when the block has no such property or does
not accept the value, such as facing=up for a block that only faces sideways. Platforms threw.
@JsonForms(Codec) marks a value packs write in more than one shape, such as a number, a [min, max]
range or a curve object. The host hands its JSON to the codec as plain values and writes it back
through it; it never creates the class or reads its fields, and the schema describes it as any
JSON value. It is the one exception to the decoding contract, so module jars no longer need Gson
(which the plugin relocates) for such values.
TreeObjects no longer has a separate procedural list: a module reports the ids of every object it
places as a tree, procedural variants included, and the host only matches those ids.
A style with a seed is rolled from that number and the world seed and
ignores the seed it is asked for, so every reader of the same seeded
style gets one shared noise. Readers that scale coordinates before
sampling read it flat in blocks. NoiseStyle.seed(), isSeeded(),
withSeed(); the NoiseFactory contract says what a seeded style does.
Ported from v3e a1bd24186.
ItemDrop.Source names its pack table by ResourceId. JigsawOverrides drops the
SOURCE constants of Heightmap and Liquids and the blank-text defaults: an option
the pack left out is null inside and empty in its getter.
PlacementRun carries the placement's display name and its JSON, from which the
host reads the settings other modules declare at the placement level.
FeatureRegistry.registerPlacementType lets the module that owns placements
declare the type and its JSON names for the placement level. RunningWorld and
PlacementTerrain keep a typed PlacementRecord (object id, placement id,
optional structure id) instead of a text. Loot gives the seed a container is
shuffled with, the ProtectedFloor service says whether the lowest layer belongs
to the terrain module, and EntitySpec holds the spawn reason, rising out of the
ground, panda genes and applying to a provided mob.
DESIGN drops the rule that built-in classes keep Iris's short snippet
folder names. Iris's own module types now name their snippets
iris/<module>/<name>, the same rule pack modules follow, so a type the
host does not share can carry a snippet too.
TerrainSampler.biomeHeight and skyBiome answer for a pack biome at any
column; Mantle.setPlatformBiome makes a block show a platform biome, inside
a chunk stage's own chunk. These replace the module's FloatingHost facade.
README, DESIGN (ledger drops FloatingHost) and CONTRACTS updated.
The api describes a pack's objects and lets a module place one through the
pack's placement graph: PlaceableObject, PackObjects (PackResources.objects()),
ScaleMethod, and Placements.place(PlacementRun) on PackWorld with
PlacementTerrain, StructureVolumes and PlacementOutcome, which moves here from
the host. Stages read PlacementContext.placementTerrain() and input(type);
mantle stages get MantleGenerationContext.placementTerrain().
BlockRegistry gains rotate (BlockTurn), merge, withProperty and matches;
BlockTrait gains STORAGE; ModuleLog gains debugging(); PackSettings gains
resources(); RunningWorld gains placementAt. README, DESIGN and CONTRACTS
describe them, and the extension ledger drops ObjectHost and ObjectPlacement.
Built-in module types are no longer held by Iris's own classes: object
placements are iris:objects settings, so every type they hold is reached
from a registered feature. FeatureRegistry.registerHeldType,
HeldTypeRegistration, FeatureCatalog.heldTypes and SchemaSource.heldType
go, with the held example module and its schema tests.
DESIGN.md lists what Iris's built-ins still ask through facades
(MatterMantle, ObjectHost, ObjectPlacement, FloatingHost, StructureHost,
SpawnCooldowns, the legacy random parameters) with the reason each is
not API yet and what would let it go, and says that a type only the
host's built-ins read stays unexposed unless packs write it as a snippet.
Finding 40, first step. PackWorld.seed(purpose) gives each purpose id an
independent world seed, specified as WorldRandom.purposeSeed and pinned
against the reference script; a host may answer its own built-ins' ids
with the seeds existing worlds depend on. PackWorld.running() is the
world as services and hooks see it (layout over every column, settings,
highest block, cave floors, sky, platform loot tables, debug), reusing
TerrainSampler and FeatureSettings instead of a facade vocabulary.
Finding 45: StructureLocator is the one locating service (startedStructures,
locatableStarts, locateStart, ChunkFilter moved from VanillaStructures).
StartMemo is one opaque non-empty text. VanillaStructureStart.identity is
deleted; the host only stored it. useExpansionHack and legacyAir stay: both
mirror platform structure behaviour any structure module needs.
Finding 46: DESIGN.md documents one decoding contract (fields read by name,
absent or null members keep the initialiser, unknown enum names are errors,
the host never writes null). Value type getters stop null-guarding.
NoiseStyle.cacheSize is deleted. @Desc texts rewritten. multiplier stays on
NoiseStyle: it is also an object placement's warp strength.
Finding 47: LinkedBiomes moves to world and takes the dimension's settings
as PackSettings. Optional packages move from ModuleInfo to the jar manifest
(Iris-Optional-Packages); PackageName moves into the host.
PlacementRequest.id is dropped (nothing read it).
Batch 6, findings 41 and 42.
- Platform keys travel as ResourceId: enchantments, attributes, sounds,
particles, potions, loot tables, sapling species, marker tags, upper
dimension ids and jigsaw start pools. ResourceId.ofPlatformKey normalises
a key a pack wrote.
- Item and entity types are a ContentKey (Registered id, or Provided
provider and name) instead of strings and a special-type flag.
- ItemDrop groups into Look, Wear and PlatformExtras; colours are an RGB
int and DyeColor, attribute operations an enum.
- EntitySpec groups into Appearance, Behaviour, Company, Drops and Arrival,
and carries host extensions instead of Iris-only fields.
- @Ref(kind = Type.class) replaces @ResourceRef and the PACK_* references;
expressions and image maps become the host kinds EXPRESSIONS and
IMAGE_MAPS.
Finding 43: PackWorld.minHeight(), PlatformStart.bottomY() and StructureFit.bottomY()
become minWorldY(), the name TerrainSampler already used, and none of them has a default.
FeatureSettings.declaredBy, TerrainSampler.surfaceBlock/upperDimension and
BlockRegistry.oreFor lose defaults that answered wrong for a host that forgot them.
BlockBox, BlockPosition and BlockFace move to com.volmit.geometry.
Finding 44: BlockRegistry keeps resolve(BlockSpec) and adds find(key), which is
empty for a block the platform lacks; resolve(String) and resolve(BlockState) go.
BlockTrait drops INVENTORY, BLOCK_ENTITY and NEEDS_UPDATE, which nothing asked;
BlockAccess.is answers every trait. GenerationContext.hunk(Class) becomes blocks().
README and DESIGN say that IrisModule compiles against iris-api, VolmLib and Gson only, checks its jar with
ModuleJarCheck, and that the classes needing Iris itself live in Iris.
- 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.
- PackWorld, InvocationContext and PackSettings get extension(type),
an Optional empty by default: the one door a host's own modules use
to reach its facades. The runners forward the inputs' extensions;
the world a module sees (ModuleWorld, built by the host) forwards
the world's. PackWorld.withLog is gone.
- A chunk stage writes registered mantle layers inside its own chunk
and reads the rest (ChunkMantle); ReadOnlyMantle and its host() are
gone.
- PackResources.find(kind, id), require(kind, id), ids(kind) and the
host kinds BIOMES, REGIONS, OBJECTS replace ResourceKey and
ResourceKind.key. Services and LinkedBiomes name pack resources by
ResourceId. @Ref(PACK_*) and @ResourceRef fit ResourceId fields.
- BlockAccess extends BlockView.
- Absent values in ItemDrop, EntitySpec and AmbientEffects.Effect are
Optionals; StructureFit.Start.key() returns a StartKey.
- Mantle.caverns() becomes isCarved(x, y, z).
- OptionsMetadata and DeclaredFieldOrder move to com.volmit.host.
- README, DESIGN and CONTRACTS updated; ExtensionsTest added.
- SettingsStack<F> replaces List<Entry<F>> wherever settings stack:
entries in level order, values(), dimension(), level(Level) and
mostSpecific().
- com.volmit.config.Level replaces FeatureAttachment.Target;
FeatureAttachment folds into FeatureDescriptor.targets().
- FeatureSettings.declaredInChunk answers every entry any column of a
chunk declares, each once.
- ChunkContext gives chunkX/chunkZ, centreX/centreZ and area().
- registerSettings takes several types at once.
- ModuleLifecycle.packLoaded(PackContext) carries resources, settings
and the module's log.
- TerrainSampler.surfaceHeight gives the surface in whole blocks.
- Stage contexts drop worldSeed() and resources(); world() always
answers. The scoped world is kept per world and module.
- Javadoc fixes; README, DESIGN and CONTRACTS updated.
- 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.
Nothing is released, so a pack holding an old copy of a bundled jar
gets no compatibility handling: it fails like any pack whose jars hold
the same class, naming both ("Class ... is in both module jars
iris-builtins.jar (bundled with the host) and
modules/iris-builtins.jar"). Removes LoadedPack.replacedJars() and the
bundled file name checks. Jar copies in a load's snapshot are named by
their place in the load, so same-named jars from the host and the pack
no longer collide before that check can name them.
ModuleHost.bundlingJars(...) names jars the host ships itself. Every
pack load copies and loads them as if they were in the pack's modules
folder: first, in the given order, in the pack's class loader, so pack
jars can still require their stages. A pack jar with a bundled jar's
file name, such as an old copy, is left out, so a pack never loads a
stale copy next to the host's; LoadedPack.replacedJars() names it for
the host to tell the owner. Messages name a bundled jar
"<name> (bundled with the host)".
JarSnapshot now takes each jar's origin from its caller, since a
bundled jar does not lie under the pack.
StructureLocator.placed(world) (default: locatable): every key under which locate finds what the module places, its own
structures and the platform structures it starts or stands in for; the host routes locate by it.
VanillaStructures.startedStructures(world), locatableStarts(world) and locateStart(world, structure, fromX, fromZ,
maxRings, ChunkFilter): the platform structures a module starts itself, the ones it can find, and the nearest start of
one, ring by ring through the module's grids, trying only the chunks the host's filter accepts (the platform's /locate
checks each start in the world and asks again without a refused chunk). README, DESIGN, CONTRACTS; test.