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 ClassesModifier and TypeClassDescriptionprivate static final record -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringfixStatuses(com.mojang.datafixers.Typed<?> chunk) protected com.mojang.datafixers.TypeRewriteRulemakeRule()private <Biomes, BlockStates>
com.mojang.datafixers.TypeRewriteRulemakeRule(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 StringunwrapStatus(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
-
Field Details
-
BEFORE_TERRAIN_STATUS
- See Also:
-
OLD_FINAL_TERRAIN_STATUS
- See Also:
-
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:
makeRulein classcom.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
-
fixStatus
-