mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 00:34:19 +00:00
Add value types for settings (BlockSpec, NoiseStyle, StyledRange, Range, BlockPosition, Object as any JSON), host-built noise through PackResources.noise(), and VanillaStructureHook for the platform's own structures
This commit is contained in:
1 parent
ef4b640867
commit
84969c74bd
28 files changed
+1012
-39
No files matched your search
@@ -0,0 +1,17 @@
|
||||
package com.volmit.noise;
|
||||
|
||||
/** Builds noise from styles a pack describes. Noise is the host's: modules describe it with {@link NoiseStyle} in
|
||||
* their settings and get samplers from here ({@link com.volmit.resource.PackResources#noise()}), never the host's
|
||||
* noise classes. Safe for concurrent calls.
|
||||
*/
|
||||
public interface NoiseFactory {
|
||||
/** The noise {@code style} describes, seeded with {@code seed}. The same style and seed give the same values
|
||||
* in every world of the pack, so derive the seed from the world seed ({@code context.worldSeed()}), not from a
|
||||
* 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.
|
||||
*/
|
||||
NoiseSampler sampler(NoiseStyle style, long seed);
|
||||
}
|
||||
Reference in new issue
Block a user