Index: src/main/java/net/minecraft/server/DataConverterRegistry.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/src/main/java/net/minecraft/server/DataConverterRegistry.java b/src/main/java/net/minecraft/server/DataConverterRegistry.java --- a/src/main/java/net/minecraft/server/DataConverterRegistry.java (revision d21469e470c928c37b815d1ef3d1e64517d97512) +++ b/src/main/java/net/minecraft/server/DataConverterRegistry.java (date 1618249493765) @@ -1,26 +1,61 @@ package net.minecraft.server; import com.google.common.collect.ImmutableMap; -import com.mojang.datafixers.DSL; -import com.mojang.datafixers.DataFixer; -import com.mojang.datafixers.DataFixerBuilder; -import com.mojang.datafixers.Typed; +import com.google.common.collect.Maps; +import com.mojang.datafixers.*; import com.mojang.datafixers.schemas.Schema; +import com.mojang.datafixers.types.Type; +import com.mojang.datafixers.types.templates.TypeTemplate; +import java.util.Map; import java.util.Objects; import java.util.function.BiFunction; +import java.util.function.Supplier; + public class DataConverterRegistry { private static final BiFunction a = Schema::new; private static final BiFunction b = DataConverterSchemaNamed::new; - private static final DataFixer c = b(); + //Steamwar Start + private static final DataFixer c = new DataFixer() { + @Override + public Dynamic update(DSL.TypeReference typeReference, Dynamic dynamic, int i, int i1) { + return dynamic; + } + + @Override + public Schema getSchema(int i) { + return new Schema(i, null){ + @Override + public void registerTypes(Schema schema, Map> entityTypes, Map> blockEntityTypes) {} + + @Override + public Map> registerEntities(Schema schema) { + return Maps.newHashMap(); + } + + @Override + public Map> registerBlockEntities(Schema schema) { + return Maps.newHashMap(); + } - private static DataFixer b() { - DataFixerBuilder datafixerbuilder = new DataFixerBuilder(SharedConstants.getGameVersion().getWorldVersion()); + @Override protected Map> buildTypes() { + return Maps.newHashMap(); + } - a(datafixerbuilder); - return datafixerbuilder.build(SystemUtils.e()); - } + @Override + public Type getType(DSL.TypeReference type) { + return null; + } + + @Override + public Type getChoiceType(DSL.TypeReference type, String choiceName) { + return null; + } + }; + } + }; + //Steamwar End public static DataFixer getDataFixer() { return a(); } // Paper - OBFHELPER public static DataFixer a() {