diff --git a/CONTRACTS.md b/CONTRACTS.md index 62c2c019c..e4fbf0a34 100644 --- a/CONTRACTS.md +++ b/CONTRACTS.md @@ -164,7 +164,8 @@ running Iris is the pack publisher's responsibility. `snippet//.json`. Complete `NOISE_STYLE`, `PACK_EXPRESSION` and `PACK_IMAGE_MAP` references; rendering a value type with the host's own description of the same JSON is allowed. - Serve `PackResources.noise()`: build each style's noise from the host's generators, expressions and image maps, - the same values for the same style and seed, cached per pack snapshot; an unknown style name is flat. + the same values for the same style and seed, cached per pack snapshot; an unknown style name is flat, a missing + expression falls back to the base style, and a missing image map fails. - Resolve `BlockSpec`s in `BlockRegistry` as packs expect (pack block, platform block, backup, air) and turn their `tileData` into the host's block entity format. - Ask every vanilla structure hook (`catalog().vanillaStructureHooks()`) before the platform starts one of its diff --git a/src/main/java/com/volmit/noise/NoiseFactory.java b/src/main/java/com/volmit/noise/NoiseFactory.java index aae58d69e..9f1f0e899 100644 --- a/src/main/java/com/volmit/noise/NoiseFactory.java +++ b/src/main/java/com/volmit/noise/NoiseFactory.java @@ -10,8 +10,9 @@ public interface NoiseFactory { * stage's random stream, when the noise must line up across chunks. The host keeps what it builds for the pack * snapshot, so asking again for the same style and seed is cheap. * - *

A style name the host does not know samples as {@link NoiseStyle#FLAT}; an expression or image map the - * pack does not have falls back to the base style. + *

A style name the host does not know samples as {@link NoiseStyle#FLAT}, and an expression the pack does not + * have falls back to the base style, as packs have always been read. An image map the pack does not have, or cannot + * use as noise, throws {@link IllegalArgumentException}. */ NoiseSampler sampler(NoiseStyle style, long seed); }