Interface ConfiguredWorldCarver
- All Superinterfaces:
Wrapper
- All Known Implementing Classes:
ConfiguredWorldCarver.Custom, ConfiguredWorldCarver.Reference
@NullMarked
@AsOf("2.3.0")
public sealed interface ConfiguredWorldCarver
extends Wrapper
permits ConfiguredWorldCarver.Reference, ConfiguredWorldCarver.Custom
Wraps Minecraft's ConfiguredWorldCarver, a carver paired with its configuration.
- Since:
- 2.3.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA configured carver authored from a vanilla algorithm and a custom config.static interfacestatic final recordA reference to an already-registered configured carver.Nested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfiguredWorldCarvercanyon(CanyonCarverConfiguration configuration) Authors a configured carver on the vanilla CANYON algorithm.static ConfiguredWorldCarvercave(CaveCarverConfiguration configuration) Authors a configured carver on the vanilla CAVE algorithm.static ConfiguredWorldCarvernetherCave(CaveCarverConfiguration configuration) Authors a configured carver on the vanilla NETHER_CAVE algorithm.static ConfiguredWorldCarverof(WorldCarverType type, CarverConfiguration configuration) Creates a configured carver from a custom carver type and configuration.static ConfiguredWorldCarverreference(ResourceKey key) References a configured carver already registered under the given key.default ObjectConvert this handle to the real Minecraft object.
-
Field Details
-
WIRE
-
-
Method Details
-
reference
References a configured carver already registered under the given key.- Parameters:
key- the registry key of the configured carver- Returns:
- a reference to the registered configured carver
- Since:
- 2.3.0
-
cave
Authors a configured carver on the vanilla CAVE algorithm.- Parameters:
configuration- the cave carver configuration- Returns:
- a configured cave carver
- Since:
- 2.3.0
-
netherCave
Authors a configured carver on the vanilla NETHER_CAVE algorithm.- Parameters:
configuration- the cave carver configuration- Returns:
- a configured nether-cave carver
- Since:
- 2.3.0
-
canyon
Authors a configured carver on the vanilla CANYON algorithm.- Parameters:
configuration- the canyon carver configuration- Returns:
- a configured canyon carver
- Since:
- 2.3.0
-
of
@AsOf("3.0.0") static ConfiguredWorldCarver of(WorldCarverType type, CarverConfiguration configuration) Creates a configured carver from a custom carver type and configuration.- Parameters:
type- the carver typeconfiguration- the carver configuration- Returns:
- a configured carver
- Since:
- 3.0.0
-
toMinecraft
Description copied from interface:WrapperConvert this handle to the real Minecraft object.- Specified by:
toMinecraftin interfaceWrapper- Returns:
- the real Minecraft object
-