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 basicConfigurationTransformation
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods 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 Detail
-
Builder
protected Builder()
-
-
Method Detail
-
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
public @NonNull MoveStrategy 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
public @NonNull ConfigurationTransformation build()
Builds the transformation.- Returns:
- The transformation
-
-