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 SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll 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- 
Builderpublic Builder() 
 
- 
 - 
Method Detail- 
dataFixerpublic DataFixerTransformation.Builder dataFixer(DataFixer fixer) Set the fixer to use to process.- Parameters:
- fixer- the fixer
- Returns:
- this builder
- Since:
- 4.0.0
 
 - 
versionKeypublic 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
 
 - 
versionKeypublic 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
 
 - 
targetVersionpublic 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
 
 - 
addTypepublic DataFixerTransformation.Builder addType(DSL.TypeReference type, Object... path) Map values atpathto being oftype.- Parameters:
- type- value type reference
- path- target path
- Returns:
- this builder
- Since:
- 4.0.0
 
 - 
addTypepublic DataFixerTransformation.Builder addType(DSL.TypeReference type, NodePath path) Map values atpathto being oftype.- Parameters:
- type- value type reference
- path- target path
- Returns:
- this builder
- Since:
- 4.0.0
 
 - 
buildpublic DataFixerTransformation build() Create a new transformation based on the provided info.- Returns:
- new transformation
- Since:
- 4.0.0
 
 
- 
 
-