mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
README, CONTRACTS: signed, scaled, minHeight, idOf and caveBiome
This commit is contained in:
1 parent
9514464d9a
commit
e8443324d4
2 files changed
+9
No files matched your search
@@ -209,6 +209,11 @@ running Iris is the pack publisher's responsibility.
|
||||
expression falls back to the base style, and a missing image map fails.
|
||||
Answer `NoiseSampler.signed(...)` with the generator's own signed read (and its per-thread coordinate memo) when it
|
||||
has one; the default is `sample * 2 - 1`.
|
||||
Answer `NoiseSampler.scaled(factor)` by building the generator again with the factor folded into its scale, leaving the sampler it
|
||||
is called on untouched (the default multiplies the coordinates, which may round differently).
|
||||
- Answer `PackWorld.minHeight()` (the platform's Y of the dimension's bottom), `PackResources.idOf(key)` (the ids the host gives
|
||||
its own resources, characters an id cannot hold replaced) and `TerrainSampler.caveBiome(x, y, z)` (the cave biome of a block,
|
||||
without the work of the rest of the sample) when the defaults do not fit the host.
|
||||
- Answer `BlockRegistry.hasTrait` (`VINE` included) and `canPlaceOn` (the support rule decorations need) as the platform
|
||||
does; stages ask per block, so answer from memory once a state was seen.
|
||||
- Resolve `BlockSpec`s in `BlockRegistry` as packs expect (pack block, platform block, backup, air) and turn their
|
||||
|
||||
@@ -548,6 +548,10 @@ by noise (each block counts as often as its weight, the style's noise at x, y, z
|
||||
one block is that block everywhere, and one without a block to pick (an empty list, or only weights of zero) is an
|
||||
`IllegalArgumentException` when the sampler is asked for. Seed it like noise.
|
||||
|
||||
`NoiseSampler.signed(...)` is `sample * 2 - 1`, which a host may answer from a per-thread memo of the coordinates it was just asked (read it
|
||||
where one field is sampled at the same points again and again, as a carver does). `scaled(factor)` is the same noise with the coordinates
|
||||
multiplied by `factor`, folded into the host's generator, not a multiplication in front of it.
|
||||
|
||||
The types are values the host creates with their no-argument constructors and reads the JSON into, like settings,
|
||||
so an omitted option keeps the default the type declares (a `Range` is 16 to 32 unless the pack or the field's
|
||||
own default says otherwise). They keep the snippet folders packs already use (`style`, `style-range`, `range`, `palette`).
|
||||
|
||||
Reference in new issue
Block a user