Class MissingDimensionFix

java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.util.datafix.fixes.MissingDimensionFix

public class MissingDimensionFix extends com.mojang.datafixers.DataFix
  • Constructor Summary

    Constructors
    Constructor
    Description
    MissingDimensionFix​(com.mojang.datafixers.schemas.Schema p_16420_, boolean p_16421_)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static <A> com.mojang.datafixers.types.Type<com.mojang.datafixers.util.Pair<A,​com.mojang.serialization.Dynamic<?>>>
    fields​(String p_16439_, com.mojang.datafixers.types.Type<A> p_16440_)
     
    protected com.mojang.datafixers.TypeRewriteRule
     
    private static <A> com.mojang.datafixers.types.Type<com.mojang.datafixers.util.Pair<com.mojang.datafixers.util.Either<A,​com.mojang.datafixers.util.Unit>,​com.mojang.serialization.Dynamic<?>>>
    optionalFields​(String p_16447_, com.mojang.datafixers.types.Type<A> p_16448_)
     
    private static <A1,​ A2> com.mojang.datafixers.types.Type<com.mojang.datafixers.util.Pair<com.mojang.datafixers.util.Either<A1,​com.mojang.datafixers.util.Unit>,​com.mojang.datafixers.util.Pair<com.mojang.datafixers.util.Either<A2,​com.mojang.datafixers.util.Unit>,​com.mojang.serialization.Dynamic<?>>>>
    optionalFields​(String p_16442_, com.mojang.datafixers.types.Type<A1> p_16443_, String p_16444_, com.mojang.datafixers.types.Type<A2> p_16445_)
     
    private <T> com.mojang.serialization.Dynamic<T>
    recreateSettings​(com.mojang.serialization.Dynamic<T> p_16437_)
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MissingDimensionFix

      public MissingDimensionFix(com.mojang.datafixers.schemas.Schema p_16420_, boolean p_16421_)
  • Method Details

    • fields

      private static <A> com.mojang.datafixers.types.Type<com.mojang.datafixers.util.Pair<A,​com.mojang.serialization.Dynamic<?>>> fields(String p_16439_, com.mojang.datafixers.types.Type<A> p_16440_)
    • optionalFields

      private static <A> com.mojang.datafixers.types.Type<com.mojang.datafixers.util.Pair<com.mojang.datafixers.util.Either<A,​com.mojang.datafixers.util.Unit>,​com.mojang.serialization.Dynamic<?>>> optionalFields(String p_16447_, com.mojang.datafixers.types.Type<A> p_16448_)
    • optionalFields

      private static <A1,​ A2> com.mojang.datafixers.types.Type<com.mojang.datafixers.util.Pair<com.mojang.datafixers.util.Either<A1,​com.mojang.datafixers.util.Unit>,​com.mojang.datafixers.util.Pair<com.mojang.datafixers.util.Either<A2,​com.mojang.datafixers.util.Unit>,​com.mojang.serialization.Dynamic<?>>>> optionalFields(String p_16442_, com.mojang.datafixers.types.Type<A1> p_16443_, String p_16444_, com.mojang.datafixers.types.Type<A2> p_16445_)
    • makeRule

      protected com.mojang.datafixers.TypeRewriteRule makeRule()
      Specified by:
      makeRule in class com.mojang.datafixers.DataFix
    • recreateSettings

      private <T> com.mojang.serialization.Dynamic<T> recreateSettings(com.mojang.serialization.Dynamic<T> p_16437_)