Class ChunkRenamesFix

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

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

    Constructors
    Constructor
    Description
    ChunkRenamesFix(com.mojang.datafixers.schemas.Schema outputSchema)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static <A> com.mojang.datafixers.Typed<com.mojang.datafixers.util.Pair<String,A>>
    appendChunkName(com.mojang.datafixers.Typed<A> typed)
     
    protected com.mojang.datafixers.TypeRewriteRule
     
    private static <T> com.mojang.serialization.Dynamic<T>
    mergeRemainders(com.mojang.datafixers.Typed<?> typed, com.mojang.serialization.Dynamic<T> p_dynamic)
     
    private static com.mojang.datafixers.Typed<?>
    renameField(com.mojang.datafixers.Typed<?> typed, String oldName, String newName)
     
    private static <A> com.mojang.datafixers.Typed<?>
    renameFieldHelper(com.mojang.datafixers.Typed<?> typed, String oldName, String newName, com.mojang.datafixers.types.Type<A> p_type)
     

    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

    • ChunkRenamesFix

      public ChunkRenamesFix(com.mojang.datafixers.schemas.Schema outputSchema)
  • Method Details

    • makeRule

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

      private static com.mojang.datafixers.Typed<?> renameField(com.mojang.datafixers.Typed<?> typed, String oldName, String newName)
    • renameFieldHelper

      private static <A> com.mojang.datafixers.Typed<?> renameFieldHelper(com.mojang.datafixers.Typed<?> typed, String oldName, String newName, com.mojang.datafixers.types.Type<A> p_type)
    • appendChunkName

      private static <A> com.mojang.datafixers.Typed<com.mojang.datafixers.util.Pair<String,A>> appendChunkName(com.mojang.datafixers.Typed<A> typed)
    • mergeRemainders

      private static <T> com.mojang.serialization.Dynamic<T> mergeRemainders(com.mojang.datafixers.Typed<?> typed, com.mojang.serialization.Dynamic<T> p_dynamic)