Interface LevelStemEditor
Edits a loaded world's biome distribution at runtime. Unlike the bootstrap datapack, this
reads the live biome source off each world's generator and swaps in an edited one, so it works
for any dimension including the end and custom dimensions.
- Since:
- 2.3.0
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionaddToDimension(ResourceKey dimension, ResourceKey biome, ClimatePoint point) Queues a biome addition to a dimension.voidapply()Applies all queued edits to every loaded world whose dimension matches.voidApplies the queued edits matching the given world's dimension to its live generator.static LevelStemEditorcreate()Creates a new DimensionEditor backed by the runtime biome source swap implementation.replaceInDimension(ResourceKey dimension, ResourceKey target, ResourceKey replacement) Queues a biome replacement in a dimension.
-
Field Details
-
RUNTIME
-
-
Method Details
-
create
Creates a new DimensionEditor backed by the runtime biome source swap implementation.- Returns:
- a new DimensionEditor instance
- Since:
- 2.3.0
-
addToDimension
@AsOf("2.3.0") LevelStemEditor addToDimension(ResourceKey dimension, ResourceKey biome, ClimatePoint point) Queues a biome addition to a dimension.- Parameters:
dimension- the dimension to editbiome- the biome to addpoint- where in climate space the biome wins- Returns:
- this editor instance
- Since:
- 2.3.0
-
replaceInDimension
@AsOf("2.3.0") LevelStemEditor replaceInDimension(ResourceKey dimension, ResourceKey target, ResourceKey replacement) Queues a biome replacement in a dimension.- Parameters:
dimension- the dimension to edittarget- the biome key to replacereplacement- the biome key to generate in its place- Returns:
- this editor instance
- Since:
- 2.3.0
-
apply
Applies all queued edits to every loaded world whose dimension matches. Worlds loaded after this call are not touched, useapply(World).- Since:
- 2.3.0
-
apply
-