Overview
TheEngine interface (implemented by IrisEngine) provides low-level access to Iris terrain generation, biome queries, and world manipulation.
Getting Engine Access
Core Methods
Location:core/src/main/java/com/volmit/iris/engine/IrisEngine.java
World Information
Returns the Iris world wrapper
Returns the dimension configuration
Returns the data loader for all dimension resources
Returns the engine target (world + dimension)
Biome Queries
Gets the surface biome at block coordinatesParameters:
x- Block X coordinatez- Block Z coordinate
IrisBiome at the surfaceGets the cave/underground biome at coordinatesParameters:
x- Block X coordinatez- Block Z coordinate
IrisBiome for cavesGets the biome at 3D coordinates (surface or cave depending on height)Parameters:
x- Block X coordinatey- Block Y coordinatez- Block Z coordinate
Returns all biomes in this dimension
Region Queries
Gets the region at block coordinatesParameters:
x- Block X coordinatez- Block Z coordinate
IrisRegionHeight Queries
Gets the surface height at coordinates (ignores fluids by default)Parameters:
x- Block X coordinatez- Block Z coordinate
Gets surface height with fluid controlParameters:
x- Block X coordinatez- Block Z coordinateignoreFluid- If true, returns highest solid block; if false, includes water/lava
Structure Queries
Gets the jigsaw structure at chunk coordinatesParameters:
x- Chunk X coordinatez- Chunk Z coordinate
IrisJigsawStructure or nullGets the jigsaw structure at block coordinatesParameters:
x- Block X coordinatey- Block Y coordinatez- Block Z coordinate
Gets object names at chunk coordinatesParameters:
x- Chunk X coordinatez- Chunk Z coordinate
Generation Stats
Returns total chunks generated by this engine
Returns current generation speed in chunks/second
Returns block updates per second
Mantle & Data
Returns the mantle system for chunk data storage
Returns the complex system for advanced biome/height streams
Lifecycle
Returns true if this is a studio (development) world
Returns true if the engine has been shut down
Shuts down the engine and saves all data
Reloads dimension data from disk (studio mode only)
Saves mantle data and engine state
Advanced Features
Seed Management
Returns the seed manager for this world
Metrics
Returns performance metrics
Prints detailed performance metrics to a command sender
Script Execution
Returns the script execution environment
Usage Examples
Find Biome Location
Monitor Generation
Custom Biome Distribution
See Also
- Dimension Access - Accessing the chunk generator
- Data Loader - Loading dimension resources