Interface WorldCarver

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

@NullMarked @AsOf("4.0.0") public interface WorldCarver extends Wrapper, Keyed
A direct Minecraft world carver or a reference to one already registered. As the name suggests, carvers "carve" or cut through existing noise-generated terrain.
Since:
4.0.0
See Also:
  • Method Details

    • reference

      @AsOf("4.0.0") static ReferencedCarver reference(ResourceKey key)
      References a carver already registered under the given key.
      Parameters:
      key - the registry key of the carver
      Returns:
      a reference to the registered carver
      Since:
      4.0.0
    • wrap

      @AsOf("4.0.0") default WorldCarver wrap()
      Resolves this carver's key in Minecraft's direct carver registry and decodes the registered value.
      Returns:
      the decoded carver
      Since:
      4.0.0
    • cave

      @AsOf("4.0.0") static ComposedCarver.Builder cave()
      Authors a carver using the vanilla cave implementation.
      Returns:
      a cave carver
      Since:
      4.0.0
    • canyon

      @AsOf("4.0.0") static ComposedCarver.Builder canyon()
      Authors a carver using the vanilla canyon implementation.
      Returns:
      a canyon carver
      Since:
      4.0.0
    • custom

      @AsOf("4.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 custom carver
      Since:
      4.0.0
    • custom

      @AsOf("4.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:
      4.0.0
    • decode

      @AsOf("4.0.0") static WorldCarver decode(Object minecraftWorldCarver)
      Reads a keyed Minecraft carver holder into a reference wrapper.
      Parameters:
      minecraftWorldCarver - the carver holder to read
      Returns:
      a reference to the carver
      Since:
      4.0.0