Class ConfigurationTransformation.Builder
java.lang.Object
org.spongepowered.configurate.transformation.ConfigurationTransformation.Builder
- Enclosing interface:
- ConfigurationTransformation
Builds a basic
ConfigurationTransformation
.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionaddAction
(NodePath path, TransformAction action) Adds an action to the transformation.build()
Builds the transformation.Gets the move strategy to be used by the resultant transformation.moveStrategy
(MoveStrategy strategy) Sets the mode strategy to be used by the resultant transformation.
-
Method Details
-
addAction
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
Gets the move strategy to be used by the resultant transformation.- Returns:
- the move strategy
- Since:
- 4.0.0
-
moveStrategy
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
Builds the transformation.- Returns:
- the transformation
- Since:
- 4.0.0
-