Class ConfigurationTransformation.Builder
- java.lang.Object
-
- org.spongepowered.configurate.transformation.ConfigurationTransformation.Builder
-
- Enclosing interface:
- ConfigurationTransformation
public static final class ConfigurationTransformation.Builder extends Object
Builds a basicConfigurationTransformation.- Since:
- 4.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationTransformation.BuilderaddAction(NodePath path, TransformAction action)Adds an action to the transformation.ConfigurationTransformationbuild()Builds the transformation.MoveStrategymoveStrategy()Gets the move strategy to be used by the resultant transformation.ConfigurationTransformation.BuildermoveStrategy(MoveStrategy strategy)Sets the mode strategy to be used by the resultant transformation.
-
-
-
Method Detail
-
addAction
public ConfigurationTransformation.Builder addAction(NodePath 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)
- Since:
- 4.0.0
-
moveStrategy
public MoveStrategy moveStrategy()
Gets the move strategy to be used by the resultant transformation.- Returns:
- the move strategy
- Since:
- 4.0.0
-
moveStrategy
public ConfigurationTransformation.Builder moveStrategy(MoveStrategy strategy)
Sets the mode strategy to be used by the resultant transformation.- Parameters:
strategy- the strategy- Returns:
- this builder (for chaining)
- Since:
- 4.0.0
-
build
public ConfigurationTransformation build()
Builds the transformation.- Returns:
- the transformation
- Since:
- 4.0.0
-
-