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 outputSchema, String name, String blockId, String oldPropertyName, String newPropertyName, UnaryOperator<String> valueFixer) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> com.mojang.serialization.Dynamic<T> fixProperties(String blockId, com.mojang.serialization.Dynamic<T> properties) protected booleanMethods inherited from class 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 blockId, com.mojang.serialization.Dynamic<T> properties) - Specified by:
fixPropertiesin classAbstractBlockPropertyFix
-