Package net.minecraft.util.datafix.fixes
Class DataComponentRemainderFix
java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.util.datafix.fixes.DataComponentRemainderFix
- Direct Known Subclasses:
FireResistantToDamageResistantComponentFix
,InvalidLockComponentFix
,LockComponentPredicateFix
,LodestoneCompassComponentFix
public abstract class DataComponentRemainderFix
extends com.mojang.datafixers.DataFix
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDataComponentRemainderFix
(com.mojang.datafixers.schemas.Schema pOutputSchema, String pName, String pComponentId) DataComponentRemainderFix
(com.mojang.datafixers.schemas.Schema pOutputSchema, String pName, String pComponentId, String pNewComponentId) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract <T> com.mojang.serialization.Dynamic
<T> fixComponent
(com.mojang.serialization.Dynamic<T> pComponent) final com.mojang.datafixers.TypeRewriteRule
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
-
name
-
componentId
-
newComponentId
-
-
Constructor Details
-
DataComponentRemainderFix
-
DataComponentRemainderFix
-
-
Method Details
-
makeRule
public final com.mojang.datafixers.TypeRewriteRule makeRule()- Specified by:
makeRule
in classcom.mojang.datafixers.DataFix
-
fixComponent
@Nullable protected abstract <T> com.mojang.serialization.Dynamic<T> fixComponent(com.mojang.serialization.Dynamic<T> pComponent)
-