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 String
private final String
private final String
private 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 boolean
Methods inherited from class net.minecraft.util.datafix.fixes.AbstractBlockPropertyFix
makeRule
Methods 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:
shouldFix
in classAbstractBlockPropertyFix
-
fixProperties
protected <T> com.mojang.serialization.Dynamic<T> fixProperties(String p_393867_, com.mojang.serialization.Dynamic<T> p_394529_) - Specified by:
fixProperties
in classAbstractBlockPropertyFix
-