mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
- SettingsStack<F> replaces List<Entry<F>> wherever settings stack: entries in level order, values(), dimension(), level(Level) and mostSpecific(). - com.volmit.config.Level replaces FeatureAttachment.Target; FeatureAttachment folds into FeatureDescriptor.targets(). - FeatureSettings.declaredInChunk answers every entry any column of a chunk declares, each once. - ChunkContext gives chunkX/chunkZ, centreX/centreZ and area(). - registerSettings takes several types at once. - ModuleLifecycle.packLoaded(PackContext) carries resources, settings and the module's log. - TerrainSampler.surfaceHeight gives the surface in whole blocks. - Stage contexts drop worldSeed() and resources(); world() always answers. The scoped world is kept per world and module. - Javadoc fixes; README, DESIGN and CONTRACTS updated.
8 lines
409 B
Java
8 lines
409 B
Java
package com.volmit.config;
|
|
|
|
/** Where a pack declares settings, from the least to the most specific: the dimension, a region, a biome, and an
|
|
* object placement. {@link Feature#targets()} names the levels a feature may be written at, and every
|
|
* {@link FeatureSettings.Entry} carries the level that declared it. Settings stacks keep this order.
|
|
*/
|
|
public enum Level { DIMENSION, REGION, BIOME, PLACEMENT }
|