A greedy-string tail with a suggestion provider sits next to the literals of the /iris
root and inside the structure literals, so literal commands keep winning. The modded
list, info and verify trees and ModdedLocateCommands.verifyStructures are deleted;
the import and capture notices stay.
CommandSVC hands a line to the dispatcher when Director does not handle it, merges its
completions, and lets a sender without iris.all run only commands opened to everyone.
The old Director list, info and verify of CommandStructure are deleted; import and
capture stay.
StructureModelModule mounts /iris structure list|info|verify as a module Command:
list writes the structure index through ToolPack.edit, info takes the structure as a
pack resource, and verify reads the world the sender stands in and reports in plain
text. The tests run list, info and verify through the dispatcher and pin that no other
module can take the structure root name or its aliases.
ToolingCommands resolves the pack of a line (pack=<name>, the sender's world, the
sender's open studio), walks the registering module's Command tree, parses the typed
arguments and runs the action on a worker thread. It also completes, and gates
commands to operators unless they are open to everyone. IrisToolPack holds the
pack's IrisData for each edit, so no hotload or second edit runs inside it, then
reloads the resources once; outputFolder is the workspace exports folder of the pack
and IrisObjectCodec reads and writes .iob.
A module registers a root Command through ToolingRegistry.registerCommand: typed
Arguments (word, text, integer, decimal, flag, choice, resource, registered),
sub-commands, and a CommandAction that runs against a CommandContext with a
ToolPack, a Sender and the platform's registries. ToolPack.edit is the one way to
change pack files; ObjectCodec reads and writes the host's object format.
The host catalogues the root commands and fails a pack load when two modules
claim one root name or alias, naming both.
The packager no longer runs StructurePackageClosure: ModuleResourceClosure
already follows the structure, pool, piece and loot references the model
annotates, and now also collects the object keys everything it follows names.
Pack validation runs first and reports broken structure graphs.
ExportClosureComparisonTest is the gate. On the overworld pack, following every
structure gives the same 210 pools, 1169 pieces and 1169 objects as before. The
export now also carries 10 objects that floating child biome object overrides
place, which the old export left out.
PackExportClosure had no callers and is removed.
structures/structure-index.json is no longer removed or skipped by validation.
Nothing is released, so an old pack that still has the file sees it reported as
a structure without a start pool.
The 800-line JSON placement validator is gone. StructurePlacementValidation
checks what the placement types cannot state (one backend, separation below
spacing, the height band, the ring radius, placement ids and anonymous grids,
editable structures that exist and avoid VACUUM/ENCASE, registered native
sources and start pools). StructureReferenceValidation checks the structure,
pool, piece and object references of every file, placed or not. Shapes, enum
names and bounds are the decoder's.
Validators read the platform's registries through ValidationContext.platform(),
empty in a build and at datapack bootstrap.
The live jigsaw metadata, start-element span and terrain-envelope checks are
cut (design call 3.7).
Object and matter loaders no longer read the runtime settings outside a runtime
pack, so a pack validates without a platform. A number option written as text
now names its path: "structures[0].terrain.lobeStrength must be a number".
--platform=<name>:<platform api jar> checks that platform's tooling parts against
the jar and what a part may see. Without it parts are skipped and the output lists them.
Classes in a part's packages are not checked as generation code. Generation
code that uses a part class fails the pack load. Parts of the platform the host
runs on (ModuleHost.runningOn) are checked against what a part may see; parts of
other platforms are skipped unread. ToolingPartLoader is a child of the pack's
loader that defines the part itself and hands platform packages to the platform's
loader. ToolingPlatform describes a platform; BUKKIT is Paper's.
Iris-Tooling-Parts lists <platform>=<entry class> entries. A part is the entry
class's package and subpackages. A malformed entry, an entry class the jar does
not hold, or parts that would share a class fail the load naming the jar and the entry.
ValidationContext.platform() hands a validator the ids the running
server registers, keyed by the same Reference a @Ref option names, so
a module checks that a structure, structure set or template pool exists
without reaching into the host. Empty when the host validates without a
platform.
The settings decoder now enforces @MinNumber/@MaxNumber on every option
a pack writes, nested ones included, naming the full path. Module
resource files get the same check. Pack validation reports every
dimension, region and biome whose settings fail to decode as a blocking
error; before, the failure only logged and the pack passed.
With that in place, batch 9 S15 replaces 120 lines of hand-written JSON
checks of importedStructures with a typed check beside StructureValidator
for what types cannot say: blank keys and a structure set without a
namespace. @MinItems stays unenforced for now (OPEN_QUESTIONS 57).
Batch 9 stage 1 cuts S9, S10, S11 and S14:
- /iris structure place (Bukkit and modded) is gone; placing an Iris
structure in-world is studio tooling that moves with the module.
- /iris studio importvanilla no longer takes structures; the structure
import commands are the one entry point.
- The rotation/translate/scale nag on structure placements is gone. A
parse-only pass keeps reporting dimension, region and biome files that
are not JSON.
- Their message keys leave the catalog and every locale.
- Iris answers every purpose seed by the API's rule; IrisWorldSeeds and
its legacy map are gone.
- Every mantle stage gets an assigned flag; disabledComponents names
stages by id, and a name that matches no stage fails the world.
- An unknown noise style or a missing expression throws.
PackWorld.seed(purpose) is a default method, WorldRandom.purposeSeed of
the world seed, for every host and purpose: the exception that let a
host answer its own built-ins with older seeds is gone. An unknown style
name or a missing expression now fails like a missing image map, instead
of sampling flat or falling back to the base style.
@Ref had two attributes of which exactly one had to be given, checked
only at pack load. One annotation per concept makes a wrong
combination a compile error; giving both still fails the load.
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().
JsonSplicer holds the text edits JsonText used to carry; GraphEdit works on
it with typed path steps. The bridge maps the API's Optionals to the wire the
studio already reads (-1 for no part or block, a blank group), so the studio
is unchanged.
Graph nodes take an optional part and their edits as one record, paths are
built from typed steps, and entries without a folder leave their group
empty.
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.
IrisObjectTransformer and TerrainBlockView served only
PlacementContext.objects() and blocks(), now gone from the API. The
settings decoder no longer reads object generator keys, and the schema
drops the platform biome reference. The entity pin moves because
EntitySpec no longer prints its empty extensions list (verified: the new
print with ", extensions=[]" put back in its three places is the old one).
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.
Port v3e's studio.editor setting. StudioEditorLauncher opens packs and pack
files in the chosen editor: VSCode through the desktop, Zed as its own
process on the pack folder. ZedProjectSettings keeps the pack's
.zed/settings.json schema mappings in step with the code workspace.
studio.editor replaces studio.openVSCode, with no legacy bridge.
`iris studio editor` (aliases vscode, vsc), `iris edit`, the modded edit
and workspace commands and the studio app's "Open biome file" all go
through the launcher. The bridge now says which editor opened the file,
or why none could.
The studio app's map and noise views replace them. Gone: VisionGUI,
NoiseExplorerGUI, their render controllers, viewports and palette, their
tests, the iris studio noise command on Bukkit and modded, and the 73
message keys only they used, from the Java constants and every catalog.
The overlays the studio bridge uses for player markers and teleports stay.
Under the 3D scene the entry's file shows as a tree of nodes, laid out
left to right. Clicking a node shows its settings on the right, a field
per schema option with defaults, ranges and enums; right click adds,
duplicates and deletes; dragging a node onto another regrows it there.
Undo and redo write earlier texts back. Edits are queued so quick ones
never refuse each other, and a file changed elsewhere is read again.
Context menus blur what is behind them, and submenus are portalled so
the menu no longer clips them.
New routes scene-file, scene-edit and scene-write read an editable
entry's file as nodes with the schema types its forms need, apply graph
edits (set, unset, append, add item, delete, duplicate, move) keeping the
file's formatting, and write whole texts back for undo. An edit made on
an older revision is refused with 409. Edits are refused with 403
outside a studio world, which alone hotloads its pack. Files are
written beside themselves and moved over, so the pack watcher never
reads one half written.
ProceduralObjectGraph reads a procedural file as a tree: the object, its
parts (stem, blob, branches, cluster, group, shared), materials and
decorations, each with its settings types and the parts that can be
added under it. ProceduralObjectScenes implements EditableSceneView.
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.
Pattern views from the server get a view each: entries by biome with a
search over names, a depth stepper, the entry's facts, and the blocks on
screen. Tiles are a pixel per column from afar and each block's tinted
top texture up close; spots a layer leaves empty read as nothing at this
depth.
The pan and zoom tile canvas the noise view had is now TiledView and
TiledCanvas, shared by noise and palettes, and the entry list is shared
with the scene views.
ModuleViews finds a pack's studio views of one kind; StudioScenes and the
new StudioPatterns sit on it. The bridge lists pattern views, their
entries, and lays out one tile of an entry at a depth (PatternEncoding:
JSON header with the block keys, then an i16 pick per column).
BiomePalettes lists each biome's surface, sea and cave ceiling layers,
its wall and its slab, and lays out the blocks one places at each depth.
It picks with each stage's own random (terrain, carve, post) and stacks
layers from the top as generation does, so the noise is seeded the same;
against a saved world the in-palette picks match (99.7% on Emberbark
Woods). Slope conditions are ignored and noted in the entry's facts.