Class ChunkHeightAndBiomeFix

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

public class ChunkHeightAndBiomeFix extends com.mojang.datafixers.DataFix
  • Field Details

    • DATAFIXER_CONTEXT_TAG

      public static final String DATAFIXER_CONTEXT_TAG
      See Also:
    • NAME

      private static final String NAME
      See Also:
    • OLD_SECTION_COUNT

      private static final int OLD_SECTION_COUNT
      See Also:
    • NEW_SECTION_COUNT

      private static final int NEW_SECTION_COUNT
      See Also:
    • NEW_MIN_SECTION_Y

      private static final int NEW_MIN_SECTION_Y
      See Also:
    • BLOCKS_PER_SECTION

      public static final int BLOCKS_PER_SECTION
      See Also:
    • LONGS_PER_SECTION

      private static final int LONGS_PER_SECTION
      See Also:
    • HEIGHTMAP_BITS

      private static final int HEIGHTMAP_BITS
      See Also:
    • HEIGHTMAP_MASK

      private static final long HEIGHTMAP_MASK
      See Also:
    • HEIGHTMAP_OFFSET

      private static final int HEIGHTMAP_OFFSET
      See Also:
    • HEIGHTMAP_TYPES

      private static final String[] HEIGHTMAP_TYPES
    • STATUS_IS_OR_AFTER_SURFACE

      private static final Set<String> STATUS_IS_OR_AFTER_SURFACE
    • STATUS_IS_OR_AFTER_NOISE

      private static final Set<String> STATUS_IS_OR_AFTER_NOISE
    • BLOCKS_BEFORE_FEATURE_STATUS

      private static final Set<String> BLOCKS_BEFORE_FEATURE_STATUS
    • BIOME_CONTAINER_LAYER_SIZE

      private static final int BIOME_CONTAINER_LAYER_SIZE
      See Also:
    • BIOME_CONTAINER_SIZE

      private static final int BIOME_CONTAINER_SIZE
      See Also:
    • BIOME_CONTAINER_TOP_LAYER_OFFSET

      private static final int BIOME_CONTAINER_TOP_LAYER_OFFSET
      See Also:
    • DEFAULT_BIOME

      public static final String DEFAULT_BIOME
      See Also:
    • BIOMES_BY_ID

      private static final it.unimi.dsi.fastutil.ints.Int2ObjectMap<String> BIOMES_BY_ID
  • Constructor Details

    • ChunkHeightAndBiomeFix

      public ChunkHeightAndBiomeFix(com.mojang.datafixers.schemas.Schema p_184863_)
  • Method Details

    • makeRule

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

      private com.mojang.serialization.Dynamic<?> predictChunkStatusBeforeSurface(com.mojang.serialization.Dynamic<?> p_184904_, Set<String> p_184905_)
    • getBiomeContainers

      private static com.mojang.serialization.Dynamic<?>[] getBiomeContainers(com.mojang.serialization.Dynamic<?> p_184907_, boolean p_184908_, int p_184909_, org.apache.commons.lang3.mutable.MutableBoolean p_184910_)
    • getOldBiome

      private static int getOldBiome(int[] p_184949_, int p_184950_)
    • updateChunkTag

      private static com.mojang.serialization.Dynamic<?> updateChunkTag(com.mojang.serialization.Dynamic<?> p_184912_, boolean p_184913_, boolean p_184914_, boolean p_184915_, Supplier<ChunkProtoTickListFix.PoorMansPalettedContainer> p_184916_)
    • shiftUpgradeData

      private static <T> com.mojang.serialization.Dynamic<T> shiftUpgradeData(com.mojang.serialization.Dynamic<T> p_196591_)
    • updateCarvingMasks

      private static com.mojang.serialization.Dynamic<?> updateCarvingMasks(com.mojang.serialization.Dynamic<?> p_184888_, int p_184889_, int p_184890_)
    • addPaddingEntries

      private static com.mojang.serialization.Dynamic<?> addPaddingEntries(com.mojang.serialization.Dynamic<?> p_184901_, String p_184902_)
    • updateHeightmaps

      private static com.mojang.serialization.Dynamic<?> updateHeightmaps(com.mojang.serialization.Dynamic<?> p_184886_)
    • getFixedHeightmap

      private static com.mojang.serialization.Dynamic<?> getFixedHeightmap(com.mojang.serialization.Dynamic<?> p_184957_)
    • makeBiomeContainer

      private static com.mojang.serialization.Dynamic<?> makeBiomeContainer(com.mojang.serialization.Dynamic<?> p_184895_, it.unimi.dsi.fastutil.ints.Int2IntFunction p_184896_)
    • makePalettedContainer

      private static com.mojang.serialization.Dynamic<?> makePalettedContainer(com.mojang.serialization.Dynamic<?> p_184970_)
    • makePalettedContainer

      private static com.mojang.serialization.Dynamic<?> makePalettedContainer(com.mojang.serialization.Dynamic<?> p_184892_, com.mojang.serialization.Dynamic<?> p_184893_)
    • makeOptimizedPalettedContainer

      private static com.mojang.serialization.Dynamic<?> makeOptimizedPalettedContainer(com.mojang.serialization.Dynamic<?> p_184959_, com.mojang.serialization.Dynamic<?> p_184960_)
    • padPaletteEntries

      private static com.mojang.serialization.Dynamic<?> padPaletteEntries(com.mojang.serialization.Dynamic<?> p_196593_, com.mojang.serialization.Dynamic<?> p_196594_, List<com.mojang.serialization.Dynamic<?>> p_196595_)
    • ceillog2

      public static int ceillog2(int p_184866_)