Commit Graph
93 Commits
Author SHA1 Message Date
piexel 58ed81032c Merge branch 'wave3b/4'
# Conflicts:
#	README.md
#	src/main/java/com/volmit/world/TerrainSampler.java
2026-10-15 07:13:58 +02:00
piexel 53b838bd3f PackResources keeps one idOf: the lower-casing ofPackKey one both merged branches added 2026-10-15 07:07:36 +02:00
piexel b047a2675d Merge branch 'wave3b/5' 2026-10-15 07:06:59 +02:00
piexel 3ab8b88e56 Merge branch 'wave3b/3'
# Conflicts:
#	CONTRACTS.md
2026-10-15 07:06:59 +02:00
piexel 6e53d7b723 TerrainSampler.surfaceBiome: the id of a column's surface biome alone 2026-10-12 02:19:48 +02:00
piexel a1c27c632b ReadOnlyMantle.host: the host's mantle behind a chunk stage's read-only view, for the host's own extensions 2026-10-12 02:04:00 +02:00
piexel dfdda39667 GenerationContext.mantle covers the chunk and the 16 blocks around it, like terrain() 2026-10-12 02:03:13 +02:00
piexel 4a0d82ea3b BlockRegistry.oreFor: the ore variant that suits the rock it is placed in, which the platform decides 2026-10-10 18:23:25 +02:00
piexel 9013c6e84b TerrainSampler.caveBiome: the cave biome of a block alone 2026-10-10 18:22:21 +02:00
piexel 44c98dcd8b NoiseSampler.scaled: the noise with an extra coordinate scale, folded into the host's generator 2026-10-10 18:19:54 +02:00
piexel 750e0691a6 Structure services answer what Iris core still asked its locator directly: placed keys and the starts a module makes of platform structures
StructureLocator.placed(world) (default: locatable): every key under which locate finds what the module places, its own
structures and the platform structures it starts or stands in for; the host routes locate by it.
VanillaStructures.startedStructures(world), locatableStarts(world) and locateStart(world, structure, fromX, fromZ,
maxRings, ChunkFilter): the platform structures a module starts itself, the ones it can find, and the nearest start of
one, ring by ring through the module's grids, trying only the chunks the host's filter accepts (the platform's /locate
checks each start in the world and asks again without a refused chunk). README, DESIGN, CONTRACTS; test.
2026-10-10 18:18:01 +02:00
piexel 8921042fdb registerHeldType: a pack module may describe a class the host loads (an exposed package), not one of its own jar 2026-10-10 18:15:44 +02:00
piexel 904a6599b3 PackResources.idOf: the id the pack's resources give a resource the pack names by key 2026-10-10 18:14:00 +02:00
piexel 40cb759271 Mantle stages see the terrain at least 16 blocks around their chunk, as chunk stages do 2026-10-10 18:13:46 +02:00
piexel ceac26bd18 PackWorld.minHeight: the platform's Y of the dimension's bottom, for settings that name an absolute world Y 2026-10-10 18:07:22 +02:00
piexel 030cbbb8fc DecorationStep describes itself and its steps (@Desc), so settings that list steps keep their studio descriptions 2026-10-10 18:07:05 +02:00
piexel 24eeeab615 NoiseSampler.signed: the sample mapped to -1..1, which a host may answer from a per-thread coordinate memo 2026-10-10 18:06:46 +02:00
piexel d1a1512a6d TerrainSampler: the surface biome's kind, the world Y of the dimension's bottom, image-map ground blocks and the dimension stacked above; FeatureSettings.declaredBy for biomes that are no column's surface biome 2026-10-10 18:05:50 +02:00
piexel 6eac1a87ca PackBiome.vanillaBiome: the biome vanilla's own rules see a pack biome as 2026-10-10 18:05:50 +02:00
piexel f3d1ff8d13 Mantle.caverns(): where the mantle carved voids for a chunk to take over, read-only like the planned blocks 2026-10-10 18:05:50 +02:00
piexel 8676ebc328 VanillaFeatures service: whether the platform's own placed features run over a world and which steps and features they skip
@Service(ALL): generates(world) (off unless a module turns it on), generatesStep(world, Optional<DecorationStep>)
(empty for a step the API does not name) and generatesFeature(world, feature); any provider may refuse a step or a
feature. Answers depend on the world only; the host asks once per world, step and feature. README services table,
DESIGN services and feature map, CONTRACTS types and host duty; a test that a silent provider leaves the pass off.
2026-10-10 18:04:44 +02:00
piexel cf8b2bb0f6 StructureStep becomes DecorationStep: the platform's decoration steps also order its placed features, which the next service names
Pure rename (and its javadoc); every use in StructureFit, the test and CONTRACTS follows.
2026-10-10 18:04:40 +02:00
piexel 60d4deb0e9 Reference.LOOT_TABLE: an option that names a loot table of the platform 2026-10-10 18:03:52 +02:00
piexel d17a017418 PackResources.idOf: the id a pack gives the resource its files name by a key (ResourceId.ofPackKey) 2026-10-10 18:02:08 +02:00
piexel d2d746734f ModuleJarCheck rejects a module that references a class the host's jar leaves out of an exposed library 2026-10-10 15:19:42 +02:00
piexel 1a319d842b Merge branch 'wave3b/p' 2026-10-10 15:07:18 +02:00
piexel 949dd90f10 TerrainSampler.surfaceY: a column's height alone, which a host answers without working out the slope 2026-10-10 14:46:16 +02:00
piexel f99dbc6344 CaveBiomes: a biome's minimum cave depth depends on the world and the biome only, so the host asks once per biome and keeps it 2026-10-10 14:46:16 +02:00
piexel b39c750e26 Service lookups answer from an index the catalog builds once per type instead of filtering every registration per call; a type's @Service annotation is read once 2026-10-10 14:46:07 +02:00
piexel a707b237cf StructureFit.log(): a vanilla structure fit knows the log of the module it was handed to; each provider gets its own fit 2026-10-10 14:25:14 +02:00
piexel e0ffe04a0d ModuleLog: each module's own log, labelled with its id, reached as context.log(), PackWorld.log() and FeatureRegistry.log() 2026-10-10 14:00:38 +02:00
piexel d7de5939d7 Merge branch 'master' into wave3/s 2026-10-10 13:21:43 +02:00
piexel bc2db7222f Merge branch 'wave3/l'
# Conflicts:
#	CONTRACTS.md
#	README.md
2026-10-10 13:05:02 +02:00
piexel 07cb9a57eb Test the AmbientEffects values 2026-10-10 13:01:33 +02:00
piexel 25f9ea2f37 LinkedBiomes: settings name the pack biomes they bring into the layout; CaveBiomes service: the cave biome a module puts at a position and a biome's minimum cave depth 2026-10-10 08:51:28 +02:00
piexel 284213e9b8 AmbientEffects service: the effects due around a player, decided by the module; Reference.SPECIAL_ENTITY 2026-10-10 08:46:32 +02:00
piexel 6c0c072afe Surface for ported built-ins: VINE trait, canPlaceOn, the sampler's fluid height and upper dimension, the mantle's planned blocks, a chunk sampler that covers the neighbors, stage timings from the chunk runner 2026-10-10 08:35:10 +02:00
piexel f8d85dcd5e A settings class whose @Feature has no key fails the load naming the module, the class and the key to add 2026-10-10 08:35:10 +02:00
piexel 6757cbdd0f Reference.TEMPLATE_POOL: JigsawOverrides.startPool names one of the platform's template pools
Studio completes the pool again from the platform's registered template pools, as the Iris class's native jigsaw
pool annotation did. A pack's own jigsaw pools are not valid here: the override replaces the start pool of a vanilla,
datapack or modded jigsaw structure.
2026-10-10 08:05:00 +02:00
piexel 4755e24407 PlatformStart gives the dimension's bottom; the catalog lists every provider of a service with its module
A shift rule written in world heights (a band of world Y) needs the bottom to convert the start's bounds, and the host
asks each VanillaStructures provider in module order, naming the module when one fails. BlockAccess documents that a
structure fit's access answers only the traits the platform's world can answer natively.
2026-10-10 03:46:12 +02:00
piexel ee7bb11790 VanillaStructures service replaces the vanilla structure hook; fit values leave the API
The hook's rule, starts and setup move to a @Service(ALL) VanillaStructures with default methods. adjustment and the
fit value types (VanillaStructureAdjustment, VanillaStructureFit, StructureTerrain, StructureStilts, YBand) are gone:
modules keep their fit vocabulary as settings. New neutral questions: shift (vertical move of a platform start),
reach (how far around its pieces a module changes terrain for a start), beforePieces/afterPieces around the platform
placing a chunk's starts. StructureFit hands a module the chunk's starts (pieces, junctions, processed template cells,
template columns, legacy template air, platform terrain adaptation and step, the start's memo), the chunk's live
blocks as a BlockAccess, the surface heights and the platform's natural block. VanillaStructureStart carries a
StartMemo instead of a fit; the host keeps it with the start's ownership record.
2026-10-10 02:53:51 +02:00
piexel b82c292dcb Settings features declare a short JSON key and may declare a root option
@Feature(key) is required: a plain field name, unique per target across all
modules and the host's own JSON fields (ModuleHost.reservingFields, back for
keys). A clash refuses the pack load naming the key, the target and both
claimants. @Feature(root) declares that the JSON under the key is one option's
value, so a settings class has exactly one shape; FeatureSchema carries it.
2026-10-09 23:16:52 +02:00
piexel 1707bb95f6 Merge branch 'wave2/e2' 2026-10-09 22:33:28 +02:00
piexel de35bbedb6 Merge branch 'wave2/d' 2026-10-09 22:33:28 +02:00
piexel 3633c105b4 Document the loot, drop, entity and sapling services and the item and entity values 2026-10-09 22:26:05 +02:00
piexel 93f1768174 Add the EntitySpawns service and EntitySpec 2026-10-09 22:16:35 +02:00
piexel 27ffdb08bd Add the SaplingGrowth service 2026-10-09 22:05:41 +02:00
piexel ad581be494 Add ItemDrop, ItemRegistry and the Loot and BlockDrops services 2026-10-09 22:02:47 +02:00
piexel ba96e0cbc2 ObjectsAt.placedBy: the biomes and regions whose settings place an object 2026-10-09 20:51:05 +02:00
piexel c90ce5ce47 Vanilla structure hook: starts, adjustments and setup, with the fit value types they carry
VanillaStructureHook gains three default methods: starts(chunkX, chunkZ, context) for the platform
structures a module starts itself, adjustment(structure, underground, context) for what it changes
about the platform's own starts, and setup(context) for structure set frequencies and protecting the
platform's own definitions from installed data packs. Values: VanillaStructureStart,
VanillaStructureStartContext, VanillaStructureFit, VanillaStructureAdjustment, VanillaStructureSetup,
and the settings-shaped StructureTerrain, StructureStilts, YBand and JigsawOverrides with the JSON
Iris already reads. Reference gains STRUCTURE_PREFIX and STRUCTURE_SET.
2026-10-09 20:50:59 +02:00