Class ConfigurationTransformation.Builder
java.lang.Object
ninja.leaping.configurate.transformation.ConfigurationTransformation.Builder
- Enclosing class:
- ConfigurationTransformation
public static final class ConfigurationTransformation.Builder extends Object
Builds a basic
ConfigurationTransformation
.-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
Modifier and Type Method Description @NonNull ConfigurationTransformation.Builder
addAction(Object[] path, TransformAction action)
Adds an action to the transformation.@NonNull ConfigurationTransformation
build()
Builds the transformation.@NonNull MoveStrategy
getMoveStrategy()
Gets the move strategy to be used by the resultant transformation.@NonNull ConfigurationTransformation.Builder
setMoveStrategy(@NonNull MoveStrategy strategy)
Sets the mode strategy to be used by the resultant transformation.
-
Constructor Details
-
Method Details
-
addAction
public @NonNull ConfigurationTransformation.Builder addAction(Object[] path, TransformAction action)Adds an action to the transformation.- Parameters:
path
- The path to apply the action ataction
- The action- Returns:
- This builder (for chaining)
-
getMoveStrategy
Gets the move strategy to be used by the resultant transformation.- Returns:
- The move strategy
-
setMoveStrategy
public @NonNull ConfigurationTransformation.Builder setMoveStrategy(@NonNull MoveStrategy strategy)Sets the mode strategy to be used by the resultant transformation.- Parameters:
strategy
- The strategy- Returns:
- This builder (for chaining)
-
build
Builds the transformation.- Returns:
- The transformation
-