Class ChunkHeightAndBiomeFix

java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.datafixer.fix.ChunkHeightAndBiomeFix

public class ChunkHeightAndBiomeFix extends com.mojang.datafixers.DataFix
Mappings:
Namespace Name
official arn
intermediary net/minecraft/class_6637
named net/minecraft/datafixer/fix/ChunkHeightAndBiomeFix
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final int
     
    private static final int
     
    static final String
     
    private static final int
     
    private static final long
     
    private static final int
     
    private static final int
     
    private static final int
     
    private static final int
     
    private static final Set<String>
     
    static final int
     
    private static final int
     
    private static final String[]
     
    private static final int
     
    private static final String
     
    static final String
     
    private static final Int2ObjectMap<String>
     
    private static final Set<String>
     
    private static final Set<String>
     
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    static int
    ceilLog2(int value)
     
    private static com.mojang.serialization.Dynamic<?>[]
    fixBiomes(com.mojang.serialization.Dynamic<?> level, boolean overworld, int int2, MutableBoolean heightAlreadyUpdated)
     
    private static com.mojang.serialization.Dynamic<?>
    fixBiomes(com.mojang.serialization.Dynamic<?> level, Int2IntFunction biomeGetter)
     
    private static com.mojang.serialization.Dynamic<?>
    fixCarvingMasks(com.mojang.serialization.Dynamic<?> level, int sectionsPerChunk, int oldBottomSectionY)
     
    private static com.mojang.serialization.Dynamic<?>
    fixChunkSectionList(com.mojang.serialization.Dynamic<?> level, String key)
     
    private static com.mojang.serialization.Dynamic<?>
    fixHeightmap(com.mojang.serialization.Dynamic<?> heightmap)
     
    private static com.mojang.serialization.Dynamic<?>
    fixHeightmaps(com.mojang.serialization.Dynamic<?> level)
     
    private static com.mojang.serialization.Dynamic<?>
    fixLevel(com.mojang.serialization.Dynamic<?> level, boolean overworld, boolean heightAlreadyUpdated, boolean atNoiseStatus, Supplier<ProtoChunkTickListFix.class_6741> supplier)
     
    private static com.mojang.serialization.Dynamic<?>
    fixPalette(com.mojang.serialization.Dynamic<?> palette)
     
    private static com.mojang.serialization.Dynamic<?>
    fixPalette(com.mojang.serialization.Dynamic<?> dynamic, com.mojang.serialization.Dynamic<?> dynamic2)
     
    private static com.mojang.serialization.Dynamic<?>
    fixPaletteWithData(com.mojang.serialization.Dynamic<?> palette, com.mojang.serialization.Dynamic<?> data)
     
    private com.mojang.serialization.Dynamic<?>
    fixStatus(com.mojang.serialization.Dynamic<?> level, Set<String> blocks)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    fixUpgradeData(com.mojang.serialization.Dynamic<T> upgradeData)
     
    private static int
    getClamped(int[] is, int index)
     
    protected com.mojang.datafixers.TypeRewriteRule
     
    private static com.mojang.serialization.Dynamic<?>
    method_39781(com.mojang.serialization.Dynamic<?> dynamic, com.mojang.serialization.Dynamic<?> dynamic2, List<com.mojang.serialization.Dynamic<?>> list)
     

    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
  • Field Details

    • CONTEXT

      public static final String CONTEXT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Larn;a:Ljava/lang/String;
      intermediary field_35444 Lnet/minecraft/class_6637;field_35444:Ljava/lang/String;
      named CONTEXT Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;CONTEXT:Ljava/lang/String;
    • NAME

      private static final String NAME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Larn;d:Ljava/lang/String;
      intermediary field_35017 Lnet/minecraft/class_6637;field_35017:Ljava/lang/String;
      named NAME Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;NAME:Ljava/lang/String;
    • CHUNK_SECTIONS_IN_OLD_CHUNK

      private static final int CHUNK_SECTIONS_IN_OLD_CHUNK
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Larn;e:I
      intermediary field_35018 Lnet/minecraft/class_6637;field_35018:I
      named CHUNK_SECTIONS_IN_OLD_CHUNK Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;CHUNK_SECTIONS_IN_OLD_CHUNK:I
    • CHUNK_SECTIONS_IN_NEW_CHUNK

      private static final int CHUNK_SECTIONS_IN_NEW_CHUNK
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Larn;f:I
      intermediary field_35019 Lnet/minecraft/class_6637;field_35019:I
      named CHUNK_SECTIONS_IN_NEW_CHUNK Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;CHUNK_SECTIONS_IN_NEW_CHUNK:I
    • MIN_CHUNK_SECTION_Y

      private static final int MIN_CHUNK_SECTION_Y
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official g Larn;g:I
      intermediary field_35020 Lnet/minecraft/class_6637;field_35020:I
      named MIN_CHUNK_SECTION_Y Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;MIN_CHUNK_SECTION_Y:I
    • field_36214

      public static final int field_36214
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Larn;b:I
      intermediary field_36214 Lnet/minecraft/class_6637;field_36214:I
      named field_36214 Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;field_36214:I
    • field_36215

      private static final int field_36215
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official h Larn;h:I
      intermediary field_36215 Lnet/minecraft/class_6637;field_36215:I
      named field_36215 Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;field_36215:I
    • field_35022

      private static final int field_35022
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official i Larn;i:I
      intermediary field_35022 Lnet/minecraft/class_6637;field_35022:I
      named field_35022 Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;field_35022:I
    • field_35023

      private static final long field_35023
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official j Larn;j:J
      intermediary field_35023 Lnet/minecraft/class_6637;field_35023:J
      named field_35023 Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;field_35023:J
    • field_35024

      private static final int field_35024
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official k Larn;k:I
      intermediary field_35024 Lnet/minecraft/class_6637;field_35024:I
      named field_35024 Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;field_35024:I
    • HEIGHTMAP_KEYS

      private static final String[] HEIGHTMAP_KEYS
      Mappings:
      Namespace Name Mixin selector
      official l Larn;l:[Ljava/lang/String;
      intermediary field_35025 Lnet/minecraft/class_6637;field_35025:[Ljava/lang/String;
      named HEIGHTMAP_KEYS Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;HEIGHTMAP_KEYS:[Ljava/lang/String;
    • STATUSES_TO_SKIP_UPDATE

      private static final Set<String> STATUSES_TO_SKIP_UPDATE
      Mappings:
      Namespace Name Mixin selector
      official m Larn;m:Ljava/util/Set;
      intermediary field_35667 Lnet/minecraft/class_6637;field_35667:Ljava/util/Set;
      named STATUSES_TO_SKIP_UPDATE Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;STATUSES_TO_SKIP_UPDATE:Ljava/util/Set;
    • field_35668

      private static final Set<String> field_35668
      Mappings:
      Namespace Name Mixin selector
      official n Larn;n:Ljava/util/Set;
      intermediary field_35668 Lnet/minecraft/class_6637;field_35668:Ljava/util/Set;
      named field_35668 Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;field_35668:Ljava/util/Set;
    • SURFACE_BLOCKS

      private static final Set<String> SURFACE_BLOCKS
      Mappings:
      Namespace Name Mixin selector
      official o Larn;o:Ljava/util/Set;
      intermediary field_35669 Lnet/minecraft/class_6637;field_35669:Ljava/util/Set;
      named SURFACE_BLOCKS Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;SURFACE_BLOCKS:Ljava/util/Set;
    • field_35026

      private static final int field_35026
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official p Larn;p:I
      intermediary field_35026 Lnet/minecraft/class_6637;field_35026:I
      named field_35026 Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;field_35026:I
    • field_35027

      private static final int field_35027
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official q Larn;q:I
      intermediary field_35027 Lnet/minecraft/class_6637;field_35027:I
      named field_35027 Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;field_35027:I
    • field_35028

      private static final int field_35028
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official r Larn;r:I
      intermediary field_35028 Lnet/minecraft/class_6637;field_35028:I
      named field_35028 Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;field_35028:I
    • PLAINS_ID

      public static final String PLAINS_ID
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Larn;c:Ljava/lang/String;
      intermediary field_35016 Lnet/minecraft/class_6637;field_35016:Ljava/lang/String;
      named PLAINS_ID Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;PLAINS_ID:Ljava/lang/String;
    • RAW_BIOME_IDS

      private static final Int2ObjectMap<String> RAW_BIOME_IDS
      Mappings:
      Namespace Name Mixin selector
      official s Larn;s:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      intermediary field_35029 Lnet/minecraft/class_6637;field_35029:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      named RAW_BIOME_IDS Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;RAW_BIOME_IDS:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
  • Constructor Details

    • ChunkHeightAndBiomeFix

      public ChunkHeightAndBiomeFix(com.mojang.datafixers.schemas.Schema schema)
      Mappings:
      Namespace Name Mixin selector
      official <init> Larn;<init>(Lcom/mojang/datafixers/schemas/Schema;)V
      intermediary <init> Lnet/minecraft/class_6637;<init>(Lcom/mojang/datafixers/schemas/Schema;)V
      named <init> Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;<init>(Lcom/mojang/datafixers/schemas/Schema;)V
  • Method Details

    • makeRule

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

      private com.mojang.serialization.Dynamic<?> fixStatus(com.mojang.serialization.Dynamic<?> level, Set<String> blocks)
      Mappings:
      Namespace Name Mixin selector
      official a Larn;a(Lcom/mojang/serialization/Dynamic;Ljava/util/Set;)Lcom/mojang/serialization/Dynamic;
      intermediary method_39517 Lnet/minecraft/class_6637;method_39517(Lcom/mojang/serialization/Dynamic;Ljava/util/Set;)Lcom/mojang/serialization/Dynamic;
      named fixStatus Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;fixStatus(Lcom/mojang/serialization/Dynamic;Ljava/util/Set;)Lcom/mojang/serialization/Dynamic;
    • fixBiomes

      private static com.mojang.serialization.Dynamic<?>[] fixBiomes(com.mojang.serialization.Dynamic<?> level, boolean overworld, int int2, MutableBoolean heightAlreadyUpdated)
      Mappings:
      Namespace Name Mixin selector
      official a Larn;a(Lcom/mojang/serialization/Dynamic;ZILorg/apache/commons/lang3/mutable/MutableBoolean;)[Lcom/mojang/serialization/Dynamic;
      intermediary method_38806 Lnet/minecraft/class_6637;method_38806(Lcom/mojang/serialization/Dynamic;ZILorg/apache/commons/lang3/mutable/MutableBoolean;)[Lcom/mojang/serialization/Dynamic;
      named fixBiomes Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;fixBiomes(Lcom/mojang/serialization/Dynamic;ZILorg/apache/commons/lang3/mutable/MutableBoolean;)[Lcom/mojang/serialization/Dynamic;
    • getClamped

      private static int getClamped(int[] is, int index)
      Mappings:
      Namespace Name Mixin selector
      official a Larn;a([II)I
      intermediary method_39519 Lnet/minecraft/class_6637;method_39519([II)I
      named getClamped Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;getClamped([II)I
    • fixLevel

      private static com.mojang.serialization.Dynamic<?> fixLevel(com.mojang.serialization.Dynamic<?> level, boolean overworld, boolean heightAlreadyUpdated, boolean atNoiseStatus, Supplier<ProtoChunkTickListFix.class_6741> supplier)
      Mappings:
      Namespace Name Mixin selector
      official a Larn;a(Lcom/mojang/serialization/Dynamic;ZZZLjava/util/function/Supplier;)Lcom/mojang/serialization/Dynamic;
      intermediary method_38807 Lnet/minecraft/class_6637;method_38807(Lcom/mojang/serialization/Dynamic;ZZZLjava/util/function/Supplier;)Lcom/mojang/serialization/Dynamic;
      named fixLevel Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;fixLevel(Lcom/mojang/serialization/Dynamic;ZZZLjava/util/function/Supplier;)Lcom/mojang/serialization/Dynamic;
    • fixUpgradeData

      private static <T> com.mojang.serialization.Dynamic<T> fixUpgradeData(com.mojang.serialization.Dynamic<T> upgradeData)
      Mappings:
      Namespace Name Mixin selector
      official a Larn;a(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_39754 Lnet/minecraft/class_6637;method_39754(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      named fixUpgradeData Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;fixUpgradeData(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
    • fixCarvingMasks

      private static com.mojang.serialization.Dynamic<?> fixCarvingMasks(com.mojang.serialization.Dynamic<?> level, int sectionsPerChunk, int oldBottomSectionY)
      Mappings:
      Namespace Name Mixin selector
      official a Larn;a(Lcom/mojang/serialization/Dynamic;II)Lcom/mojang/serialization/Dynamic;
      intermediary method_38799 Lnet/minecraft/class_6637;method_38799(Lcom/mojang/serialization/Dynamic;II)Lcom/mojang/serialization/Dynamic;
      named fixCarvingMasks Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;fixCarvingMasks(Lcom/mojang/serialization/Dynamic;II)Lcom/mojang/serialization/Dynamic;
    • fixChunkSectionList

      private static com.mojang.serialization.Dynamic<?> fixChunkSectionList(com.mojang.serialization.Dynamic<?> level, String key)
      Mappings:
      Namespace Name Mixin selector
      official a Larn;a(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
      intermediary method_38805 Lnet/minecraft/class_6637;method_38805(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
      named fixChunkSectionList Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;fixChunkSectionList(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
    • fixHeightmaps

      private static com.mojang.serialization.Dynamic<?> fixHeightmaps(com.mojang.serialization.Dynamic<?> level)
      Mappings:
      Namespace Name Mixin selector
      official b Larn;b(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_38798 Lnet/minecraft/class_6637;method_38798(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      named fixHeightmaps Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;fixHeightmaps(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
    • fixHeightmap

      private static com.mojang.serialization.Dynamic<?> fixHeightmap(com.mojang.serialization.Dynamic<?> heightmap)
      Mappings:
      Namespace Name Mixin selector
      official c Larn;c(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_38812 Lnet/minecraft/class_6637;method_38812(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      named fixHeightmap Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;fixHeightmap(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
    • fixBiomes

      private static com.mojang.serialization.Dynamic<?> fixBiomes(com.mojang.serialization.Dynamic<?> level, Int2IntFunction biomeGetter)
      Mappings:
      Namespace Name Mixin selector
      official a Larn;a(Lcom/mojang/serialization/Dynamic;Lit/unimi/dsi/fastutil/ints/Int2IntFunction;)Lcom/mojang/serialization/Dynamic;
      intermediary method_38803 Lnet/minecraft/class_6637;method_38803(Lcom/mojang/serialization/Dynamic;Lit/unimi/dsi/fastutil/ints/Int2IntFunction;)Lcom/mojang/serialization/Dynamic;
      named fixBiomes Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;fixBiomes(Lcom/mojang/serialization/Dynamic;Lit/unimi/dsi/fastutil/ints/Int2IntFunction;)Lcom/mojang/serialization/Dynamic;
    • fixPalette

      private static com.mojang.serialization.Dynamic<?> fixPalette(com.mojang.serialization.Dynamic<?> palette)
      Mappings:
      Namespace Name Mixin selector
      official d Larn;d(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_38816 Lnet/minecraft/class_6637;method_38816(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      named fixPalette Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;fixPalette(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
    • fixPaletteWithData

      private static com.mojang.serialization.Dynamic<?> fixPaletteWithData(com.mojang.serialization.Dynamic<?> palette, com.mojang.serialization.Dynamic<?> data)
      Mappings:
      Namespace Name Mixin selector
      official a Larn;a(Lcom/mojang/serialization/Dynamic;Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_38802 Lnet/minecraft/class_6637;method_38802(Lcom/mojang/serialization/Dynamic;Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      named fixPaletteWithData Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;fixPaletteWithData(Lcom/mojang/serialization/Dynamic;Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
    • fixPalette

      private static com.mojang.serialization.Dynamic<?> fixPalette(com.mojang.serialization.Dynamic<?> dynamic, com.mojang.serialization.Dynamic<?> dynamic2)
      Mappings:
      Namespace Name Mixin selector
      official b Larn;b(Lcom/mojang/serialization/Dynamic;Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_38813 Lnet/minecraft/class_6637;method_38813(Lcom/mojang/serialization/Dynamic;Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      named fixPalette Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;fixPalette(Lcom/mojang/serialization/Dynamic;Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
    • method_39781

      private static com.mojang.serialization.Dynamic<?> method_39781(com.mojang.serialization.Dynamic<?> dynamic, com.mojang.serialization.Dynamic<?> dynamic2, List<com.mojang.serialization.Dynamic<?>> list)
      Mappings:
      Namespace Name Mixin selector
      official a Larn;a(Lcom/mojang/serialization/Dynamic;Lcom/mojang/serialization/Dynamic;Ljava/util/List;)Lcom/mojang/serialization/Dynamic;
      intermediary method_39781 Lnet/minecraft/class_6637;method_39781(Lcom/mojang/serialization/Dynamic;Lcom/mojang/serialization/Dynamic;Ljava/util/List;)Lcom/mojang/serialization/Dynamic;
      named method_39781 Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;method_39781(Lcom/mojang/serialization/Dynamic;Lcom/mojang/serialization/Dynamic;Ljava/util/List;)Lcom/mojang/serialization/Dynamic;
    • ceilLog2

      public static int ceilLog2(int value)
      Mappings:
      Namespace Name Mixin selector
      official a Larn;a(I)I
      intermediary method_38793 Lnet/minecraft/class_6637;method_38793(I)I
      named ceilLog2 Lnet/minecraft/datafixer/fix/ChunkHeightAndBiomeFix;ceilLog2(I)I