Interface ConfiguredWorldCarver
- All Known Subinterfaces:
ComposedCarver, CustomComposedCarver<C>, ReferencedCarver
Wraps Minecraft's ConfiguredWorldCarver,
a carver paired with its configuration or a reference to a carver already registered.
- Since:
- 2.3.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic ComposedCarver.Buildercanyon()Authors a configured carver on the vanilla CANYON algorithm.static ComposedCarver.Buildercave()Authors a configured carver on the vanilla CAVE algorithm.static <C> CustomComposedCarver.Builder<C> custom()Creates a new builder for a custom carver.static <C> CustomComposedCarver<C> custom(CustomCarver<C> customCarver, C config) Composes a registered custom carver with a config instance.static ConfiguredWorldCarverReads a keyed Minecraft configured-carver holder into a reference wrapper.static ComposedCarver.BuilderAuthors a configured carver on the vanilla NETHER_CAVE algorithm.static ReferencedCarverreference(ResourceKey key) References a configured carver already registered under the given key.default ConfiguredWorldCarverwrap()Resolves this carver's key in Minecraft's configured-carver registry and decodes the registered value.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
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
-
wrap
Resolves this carver's key in Minecraft's configured-carver registry and decodes the registered value.- Returns:
- the decoded configured carver
- Since:
- 3.3.0
-
cave
Authors a configured carver on the vanilla CAVE algorithm.- Returns:
- a configured cave carver
- Since:
- 2.3.0
-
netherCave
Authors a configured carver on the vanilla NETHER_CAVE algorithm.- Returns:
- a configured nether-cave carver
- Since:
- 2.3.0
-
canyon
Authors a configured carver on the vanilla CANYON algorithm.- Returns:
- a configured canyon carver
- Since:
- 2.3.0
-
custom
Composes a registered custom carver with a config instance.- Type Parameters:
C- the config type- Parameters:
customCarver- the custom carver to composeconfig- the config instance to carve with- Returns:
- an authored configured carver
- Since:
- 3.0.0
-
custom
Creates a new builder for a custom carver.- Type Parameters:
C- the config type- Returns:
- a new custom carver builder
- Since:
- 3.0.0
-
decode
Reads a keyed Minecraft configured-carver holder into a reference wrapper.- Parameters:
minecraftConfiguredCarver- the configured-carver holder to read- Returns:
- a reference to the configured carver
- Since:
- 3.3.0
-