Class DataFixerTransformation.Builder
java.lang.Object
org.spongepowered.configurate.extra.dfu.v4.DataFixerTransformation.Builder
- Enclosing class:
- DataFixerTransformation
Builder for
DataFixerTransformation
.- Since:
- 4.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddType
(DSL.TypeReference type, Object... path) Map values atpath
to being oftype
.addType
(DSL.TypeReference type, NodePath path) Map values atpath
to being oftype
.build()
Create a new transformation based on the provided info.Set the fixer to use to process.targetVersion
(int targetVersion) Set the desired target version.versionKey
(Object... path) Set the path of the node to query and store the node's schema version at.versionKey
(NodePath path) Set the path of the node to query and store the node's schema version at.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataFixer
Set the fixer to use to process.- Parameters:
fixer
- the fixer- Returns:
- this builder
- Since:
- 4.0.0
-
versionKey
Set the path of the node to query and store the node's schema version at.- Parameters:
path
- the path- Returns:
- this builder
- Since:
- 4.0.0
-
versionKey
Set the path of the node to query and store the node's schema version at.- Parameters:
path
- the path- Returns:
- this builder
- Since:
- 4.0.0
-
targetVersion
Set the desired target version. If none is specified, the newest available version will be determined from the DataFixer.- Parameters:
targetVersion
- target version- Returns:
- this builder
- Since:
- 4.0.0
-
addType
Map values atpath
to being oftype
.- Parameters:
type
- value type referencepath
- target path- Returns:
- this builder
- Since:
- 4.0.0
-
addType
Map values atpath
to being oftype
.- Parameters:
type
- value type referencepath
- target path- Returns:
- this builder
- Since:
- 4.0.0
-
build
Create a new transformation based on the provided info.- Returns:
- new transformation
- Since:
- 4.0.0
-