Overview
Iris provides a builder pattern API for creating worlds through theIrisCreator class. Access it via IrisToolbelt.createWorld().
Quick Start
IrisToolbelt
TheIrisToolbelt class provides utility methods for working with Iris worlds.
Static Methods
Returns a new
IrisCreator builder instance for world creationFinds and loads a dimension by name. Automatically downloads from repositories if not found locally.Parameters:
dimension- Dimension folder name, or GitHub repository (e.g., “GithubUsername/repository” or “GithubUsername/repository/branch”)
IrisDimension or null if not foundChecks if a world is managed by IrisParameters:
world- The world to check
true if the world uses Iris generationGets the Iris generator interface for a worldParameters:
world- The world to access
PlatformChunkGenerator or null if not an Iris worldIrisCreator Builder
TheIrisCreator class uses a fluent builder pattern for configuring world creation.
Builder Methods
Sets the world nameDefault:
"irisworld"Sets the dimension to use for generationDefault: Value from
IrisSettings.get().getGenerator().getDefaultWorldType()Sets the world seedDefault:
1337Enables studio mode. Studio worlds are hotloadable, use dimensions from
Iris/packs folder, and are deleted when unloaded.Default: falseEnables benchmark mode for performance testingDefault:
falseSets a sender to receive progress updates and auto-teleport when completeDefault:
Iris.getSender()Configures pregeneration during world creationDefault:
null (no pregeneration)Creating the World
Creates the world with the configured settings. Must be called from an async thread.Returns: The created Bukkit
WorldThrows: IrisException if creation fails or called on main threadComplete Example
Important Notes
Studio worlds are automatically removed from MultiverseCore config and deleted when unloaded. They’re designed for dimension development.