Class DataFixerTransformation.Builder
- java.lang.Object
-
- org.spongepowered.configurate.extra.dfu.v3.DataFixerTransformation.Builder
-
- Enclosing class:
- DataFixerTransformation
public static class DataFixerTransformation.Builder extends Object
Builder forDataFixerTransformation
.- Since:
- 4.0.0
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataFixerTransformation.Builder
addType(DSL.TypeReference type, Object... path)
Map values atpath
to being oftype
.DataFixerTransformation.Builder
addType(DSL.TypeReference type, NodePath path)
Map values atpath
to being oftype
.DataFixerTransformation
build()
Create a new transformation based on the provided info.DataFixerTransformation.Builder
dataFixer(DataFixer fixer)
Set the fixer to use to process.DataFixerTransformation.Builder
targetVersion(int targetVersion)
Set the desired target version.DataFixerTransformation.Builder
versionPath(Object... path)
Set the path of the node to query and store the node's schema version at.DataFixerTransformation.Builder
versionPath(NodePath path)
Set the path of the node to query and store the node's schema version at.
-
-
-
Constructor Detail
-
Builder
public Builder()
-
-
Method Detail
-
dataFixer
public DataFixerTransformation.Builder dataFixer(DataFixer fixer)
Set the fixer to use to process.- Parameters:
fixer
- the fixer- Returns:
- this builder
- Since:
- 4.0.0
-
versionPath
public DataFixerTransformation.Builder versionPath(Object... path)
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
-
versionPath
public DataFixerTransformation.Builder versionPath(NodePath path)
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
public DataFixerTransformation.Builder targetVersion(int 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
public DataFixerTransformation.Builder addType(DSL.TypeReference type, Object... path)
Map values atpath
to being oftype
.- Parameters:
type
- value type referencepath
- target path- Returns:
- this builder
- Since:
- 4.0.0
-
addType
public DataFixerTransformation.Builder addType(DSL.TypeReference type, NodePath path)
Map values atpath
to being oftype
.- Parameters:
type
- value type referencepath
- target path- Returns:
- this builder
- Since:
- 4.0.0
-
build
public DataFixerTransformation build()
Create a new transformation based on the provided info.- Returns:
- new transformation
- Since:
- 4.0.0
-
-