mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 00:34:19 +00:00
Say that a missing image map fails noise building, as Iris's image noise does, instead of falling back
This commit is contained in:
1 parent
84969c74bd
commit
20d504bd28
2 files changed
+5
-3
No files matched your search
+2
-1
@@ -164,7 +164,8 @@ running Iris is the pack publisher's responsibility.
|
||||
`snippet/<folder>/<name>.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
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
* <p>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.
|
||||
* <p>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);
|
||||
}
|
||||
Reference in new issue
Block a user