Class BlockPropertyRenameAndFix
java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.util.datafix.fixes.AbstractBlockPropertyFix
net.minecraft.util.datafix.fixes.BlockPropertyRenameAndFix
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final Stringprivate final Stringprivate final UnaryOperator<String> -
Constructor Summary
ConstructorsConstructorDescriptionBlockPropertyRenameAndFix(Schema outputSchema, String name, String blockId, String oldPropertyName, String newPropertyName, UnaryOperator<String> valueFixer) -
Method Summary
Methods inherited from class AbstractBlockPropertyFix
makeRuleMethods inherited from class DataFix
checked, convertUnchecked, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, getInputSchema, getOutputSchema, getRule, getVersionKey, onFail, writeAndRead, writeFixAndRead
-
Field Details
-
blockId
-
oldPropertyName
-
newPropertyName
-
valueFixer
-
-
Constructor Details
-
BlockPropertyRenameAndFix
-
-
Method Details
-
shouldFix
- Specified by:
shouldFixin classAbstractBlockPropertyFix
-
fixProperties
- Specified by:
fixPropertiesin classAbstractBlockPropertyFix
-