Class DataFixerTransformation.Builder
- java.lang.Object
-
- org.spongepowered.configurate.extra.dfu.v4.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.BuilderaddType(DSL.TypeReference type, Object... path)Map values atpathto being oftype.DataFixerTransformation.BuilderaddType(DSL.TypeReference type, NodePath path)Map values atpathto being oftype.DataFixerTransformationbuild()Create a new transformation based on the provided info.DataFixerTransformation.BuilderdataFixer(DataFixer fixer)Set the fixer to use to process.DataFixerTransformation.BuildertargetVersion(int targetVersion)Set the desired target version.DataFixerTransformation.BuilderversionKey(Object... path)Set the path of the node to query and store the node's schema version at.DataFixerTransformation.BuilderversionKey(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
-
versionKey
public DataFixerTransformation.Builder versionKey(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
-
versionKey
public DataFixerTransformation.Builder versionKey(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 atpathto 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 atpathto 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
-
-