Package net.minecraft.datafixer.fix
Class IglooMetadataRemovalFix
java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.datafixer.fix.IglooMetadataRemovalFix
public class IglooMetadataRemovalFix
extends com.mojang.datafixers.DataFix
-
Constructor Summary
Constructors Constructor Description IglooMetadataRemovalFix(com.mojang.datafixers.schemas.Schema outputSchema, boolean changesType)
-
Method Summary
Modifier and Type Method Description private static boolean
isIgloo(com.mojang.serialization.Dynamic<?> dynamic)
protected com.mojang.datafixers.TypeRewriteRule
makeRule()
private static <T> com.mojang.serialization.Dynamic<T>
removeIgloos(com.mojang.serialization.Dynamic<T> dynamic)
private static <T> com.mojang.serialization.Dynamic<T>
removeMetadata(com.mojang.serialization.Dynamic<T> dynamic)
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
-
Constructor Details
-
IglooMetadataRemovalFix
public IglooMetadataRemovalFix(com.mojang.datafixers.schemas.Schema outputSchema, boolean changesType)
-
-
Method Details
-
makeRule
protected com.mojang.datafixers.TypeRewriteRule makeRule()- Specified by:
makeRule
in classcom.mojang.datafixers.DataFix
-
removeMetadata
private static <T> com.mojang.serialization.Dynamic<T> removeMetadata(com.mojang.serialization.Dynamic<T> dynamic) -
removeIgloos
private static <T> com.mojang.serialization.Dynamic<T> removeIgloos(com.mojang.serialization.Dynamic<T> dynamic) -
isIgloo
private static boolean isIgloo(com.mojang.serialization.Dynamic<?> dynamic)
-