Interface ConfiguredWorldCarver

All Superinterfaces:
Keyed, Wrapper
All Known Subinterfaces:
ComposedCarver, CustomComposedCarver<C>, ReferencedCarver

@NullMarked @AsOf("2.3.0") public interface ConfiguredWorldCarver extends Wrapper, Keyed
Wraps Minecraft's ConfiguredWorldCarver, a carver paired with its configuration or a reference to a carver already registered.
Since:
2.3.0
  • Method Details

    • reference

      @AsOf("2.3.0") static ReferencedCarver reference(ResourceKey key)
      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

      @AsOf("3.3.0") @Experimental default ConfiguredWorldCarver 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

      @AsOf("2.3.0") static ComposedCarver.Builder cave()
      Authors a configured carver on the vanilla CAVE algorithm.
      Returns:
      a configured cave carver
      Since:
      2.3.0
    • netherCave

      @AsOf("2.3.0") static ComposedCarver.Builder netherCave()
      Authors a configured carver on the vanilla NETHER_CAVE algorithm.
      Returns:
      a configured nether-cave carver
      Since:
      2.3.0
    • canyon

      @AsOf("2.3.0") static ComposedCarver.Builder canyon()
      Authors a configured carver on the vanilla CANYON algorithm.
      Returns:
      a configured canyon carver
      Since:
      2.3.0
    • custom

      @AsOf("3.0.0") static <C> CustomComposedCarver<C> custom(CustomCarver<C> customCarver, C config)
      Composes a registered custom carver with a config instance.
      Type Parameters:
      C - the config type
      Parameters:
      customCarver - the custom carver to compose
      config - the config instance to carve with
      Returns:
      an authored configured carver
      Since:
      3.0.0
    • custom

      @AsOf("3.0.0") static <C> CustomComposedCarver.Builder<C> 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

      @AsOf("3.3.0") static ConfiguredWorldCarver decode(Object minecraftConfiguredCarver)
      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