Interface CustomComposedCarver<C>
- Type Parameters:
C- The configuration type.
- All Superinterfaces:
ConfiguredWorldCarver, Keyed, Registerable<CustomComposedCarver<C>>, Wrapper
@NullMarked
@AsOf("3.0.0")
public interface CustomComposedCarver<C>
extends ConfiguredWorldCarver, Registerable<CustomComposedCarver<C>>
A composed carver that uses a custom carver and its configuration.
- Since:
- 3.0.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic <C> CustomComposedCarver.Builder<C> builder()Creates a new builder.carver()The custom carver.config()The configuration of the custom carver.static <C> CustomComposedCarver<C> of(CustomCarver<C> carver, C config) Creates a new composed carver.default CustomComposedCarver<C> register()Registers the custom carver.default CustomComposedCarver.Builder<C> Converts this composed carver to a builder.Methods inherited from interface ConfiguredWorldCarver
wrapMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
carver
-
config
-
toBuilder
Converts this composed carver to a builder.- Returns:
- a builder with the same values as this composed carver
- Since:
- 3.0.0
-
register
Registers the custom carver.- Specified by:
registerin interfaceRegisterable<C>- Since:
- 3.0.0
-
of
Creates a new composed carver.- Type Parameters:
C- The configuration type.- Parameters:
carver- The custom carver.config- The configuration of the custom carver.- Returns:
- A new composed carver.
- Since:
- 3.0.0
-
builder
Creates a new builder.- Type Parameters:
C- The configuration type- Returns:
- a new builder
- Since:
- 3.0.0
-