mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 08:44:50 +00:00
Show decorators, snippets and ground cover in the studio
Decorators get their own pattern view from the decorant module: each biome's decorators from above, placed where their own noise allows. The Palettes and Decorators views list the pack's snippet files in a Snippets group, with the biomes that use each one, and mark entries read from a snippet. PackResources gains snippetOf and snippets so a module can tell where a settings value came from. The 3D world draws what stands on the ground, such as grass and flowers, as the block's own model. A plugin block that is solid on the server but shown to players as a plant no longer counts as ground.
This commit is contained in:
1 parent
67063b02d7
commit
55f6a06f9f
30 files changed
+1172
-71
No files matched your search
+3
-1
@@ -806,7 +806,9 @@ public final class FloraSettings implements IrisFeature {
|
||||
`List`, `Set` and arrays of these, `Map<String, V>`, `Object` for any JSON value, and concrete classes,
|
||||
which are described the same way, IrisApi's value types among them (see Values in settings). `@Snippet("example/flora/patch")` on a class lets packs write it as a file under
|
||||
`snippet/example/flora/patch/`. A pack module's snippet names start with its module id as a folder
|
||||
path (`example/flora` for `example:flora`).
|
||||
path (`example/flora` for `example:flora`). A tool that lists what a pack shares asks
|
||||
`PackResources.snippetOf(value)` for the file a settings value was read from, and
|
||||
`PackResources.snippets(Patch.class)` for every file of the type, used or not.
|
||||
Anything else fails the pack load: `char`, other JDK classes such as `UUID` or `Optional`,
|
||||
interfaces and abstract classes, inner (non-static) classes, collections without type arguments,
|
||||
concrete collections such as `ArrayList`, and maps with other keys.
|
||||
|
||||
Reference in new issue
Block a user