Class MergeTerrainChunkStatusFix

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

public class MergeTerrainChunkStatusFix extends com.mojang.datafixers.DataFix
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static final record 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final String
     
    private static final String
     
    private static final Set<String>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    MergeTerrainChunkStatusFix(com.mojang.datafixers.schemas.Schema schema)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static String
    fixStatus(String status)
     
    fixStatuses(com.mojang.datafixers.Typed<?> chunk)
     
    protected com.mojang.datafixers.TypeRewriteRule
     
    private <Biomes, BlockStates>
    com.mojang.datafixers.TypeRewriteRule
    makeRule(com.mojang.datafixers.types.Type<?> chunkType, com.mojang.datafixers.OpticFinder<?> sectionsF, com.mojang.datafixers.types.Type<?> sectionType, com.mojang.datafixers.types.Type<Biomes> biomesType, com.mojang.datafixers.types.Type<BlockStates> blockStatesType)
     
    private static <Biomes, BlockStates>
    com.mojang.datafixers.Typed<?>
    removeBlockStates(com.mojang.datafixers.Typed<?> chunk, com.mojang.datafixers.OpticFinder<?> sectionsF, com.mojang.datafixers.OpticFinder<com.mojang.datafixers.util.Pair<com.mojang.datafixers.util.Either<Biomes, com.mojang.datafixers.util.Unit>, com.mojang.datafixers.util.Pair<com.mojang.datafixers.util.Either<BlockStates, com.mojang.datafixers.util.Unit>, com.mojang.serialization.Dynamic<?>>>> sectionF, boolean onlyBelowZero)
     
    private static String
    unwrapStatus(com.mojang.serialization.OptionalDynamic<?> status)
     

    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 Object

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

    • BEFORE_TERRAIN_STATUS

      private static final String BEFORE_TERRAIN_STATUS
      See Also:
    • OLD_FINAL_TERRAIN_STATUS

      private static final String OLD_FINAL_TERRAIN_STATUS
      See Also:
    • OLD_INTERMEDIATE_TERRAIN_STATUSES

      private static final Set<String> OLD_INTERMEDIATE_TERRAIN_STATUSES
  • Constructor Details

    • MergeTerrainChunkStatusFix

      public MergeTerrainChunkStatusFix(com.mojang.datafixers.schemas.Schema schema)
  • Method Details

    • makeRule

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

      private <Biomes, BlockStates> com.mojang.datafixers.TypeRewriteRule makeRule(com.mojang.datafixers.types.Type<?> chunkType, com.mojang.datafixers.OpticFinder<?> sectionsF, com.mojang.datafixers.types.Type<?> sectionType, com.mojang.datafixers.types.Type<Biomes> biomesType, com.mojang.datafixers.types.Type<BlockStates> blockStatesType)
    • removeBlockStates

      private static <Biomes, BlockStates> com.mojang.datafixers.Typed<?> removeBlockStates(com.mojang.datafixers.Typed<?> chunk, com.mojang.datafixers.OpticFinder<?> sectionsF, com.mojang.datafixers.OpticFinder<com.mojang.datafixers.util.Pair<com.mojang.datafixers.util.Either<Biomes, com.mojang.datafixers.util.Unit>, com.mojang.datafixers.util.Pair<com.mojang.datafixers.util.Either<BlockStates, com.mojang.datafixers.util.Unit>, com.mojang.serialization.Dynamic<?>>>> sectionF, boolean onlyBelowZero)
    • fixStatuses

      private MergeTerrainChunkStatusFix.FixedAndStatuses fixStatuses(com.mojang.datafixers.Typed<?> chunk)
    • unwrapStatus

      private static String unwrapStatus(com.mojang.serialization.OptionalDynamic<?> status)
    • fixStatus

      private static String fixStatus(String status)