Move the host side of the README to HOST.md, fix the stale host example

README is for module authors; the 190 lines about loading packs and
running stages are in HOST.md, linked from README. The host example uses
the packages Iris exposes today and no longer shows the deprecated
describingHostTypesIn. DESIGN records that Sender.extension is a
deliberate platform-tooling door that stays.
This commit is contained in:
piexel committed 2026-11-06 13:03:08 +01:00
1 parent 131f1575ae
commit 616e50e605
4 files changed
+199 -187

No files matched your search

+4
View File
@@ -1325,6 +1325,10 @@ so a host offers what it has and a module states what it requires:
- **Built-ins only, by convention.** The method is public API, and a pack module can call it; it gets only what the host
offers, typed by classes in the host's exposed package. Every type offered is a promise, as above.
`Sender.extension(type)` (tooling) is not part of this door and stays when the three methods above are removed: it is a
deliberate platform-tooling door. A command's platform part asks for the platform's own sender, such as a Bukkit `Player`, and
no API value can name a platform class.
A module never reaches the host's engine, its data loader or its layout classes; it reads the layout through the API's
values and its settings through `FeatureSettings`. Iris's mapping from its internals to this surface, with the
utilities that move into VolmLib, is in its notes (context.md, "How a module reaches the host").