Overview
ThePlatformChunkGenerator interface provides access to the Iris engine and dimension data for a world.
Getting Generator Access
PlatformChunkGenerator Interface
Location:core/src/main/java/com/volmit/iris/engine/platform/PlatformChunkGenerator.java
Methods
Returns the Iris engine instance for this worldReturns:
Engine or null if not initializedReturns the engine target containing world and dimension informationReturns:
EngineTarget (never null)Returns the data loader for this dimensionReturns:
IrisData - provides access to all dimension resourcesChecks if this is a studio world (hotloadable, development mode)Returns:
true if studio mode is enabledCloses and cleans up the generator. Called automatically on world unload.
Updates internal references to the Bukkit worldParameters:
world- The Bukkit world instance
Injects a chunk replacement at the specified coordinatesParameters:
world- The target worldx- Chunk X coordinatez- Chunk Z coordinatesyncExecutor- Executor for synchronous operations
Returns a future that completes with the number of spawn chunks to generateReturns:
CompletableFuture<Integer> with spawn chunk countDataProvider Interface
PlatformChunkGenerator extends DataProvider, giving access to:
Access to all dimension data loaders (biomes, regions, objects, etc.)
Hotloadable Interface
PlatformChunkGenerator extends Hotloadable for live reloading:
Reloads dimension data without restarting the server (studio mode only)
Usage Examples
Check World Type
Access Dimension Data
Wait for Spawn Generation
See Also
- Engine Access - Working with the Iris engine
- Data Loader - Loading dimension resources