Package net.minecraft.util.datafix.fixes
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(com.mojang.datafixers.schemas.Schema pOutputSchema, String pName, String pBlockId, String pOldPropertyName, String pNewPropertyName, UnaryOperator<String> pValueFixer) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> com.mojang.serialization.Dynamic<T> fixProperties(String p_393867_, com.mojang.serialization.Dynamic<T> p_394529_) protected booleanMethods inherited from class net.minecraft.util.datafix.fixes.AbstractBlockPropertyFix
makeRuleMethods inherited from class com.mojang.datafixers.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
protected <T> com.mojang.serialization.Dynamic<T> fixProperties(String p_393867_, com.mojang.serialization.Dynamic<T> p_394529_) - Specified by:
fixPropertiesin classAbstractBlockPropertyFix
-