Class BitStorageAlignFix

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

public class BitStorageAlignFix extends com.mojang.datafixers.DataFix
Mappings:
Namespace Name
official atn
intermediary net/minecraft/class_5196
named net/minecraft/datafixer/fix/BitStorageAlignFix
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final int
     
    private static final int
     
    private static final int
     
    private static final int
     
    private static final int
     
    private static final int
     
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    private static com.mojang.serialization.Dynamic<?>
    fixBitStorageArray(com.mojang.serialization.Dynamic<?> sectionDynamic, com.mojang.serialization.Dynamic<?> statesDynamic, int maxValue, int elementBits)
     
    private com.mojang.datafixers.Typed<?>
    fixHeightmaps(com.mojang.datafixers.Typed<?> fixedLevel)
     
    private static com.mojang.datafixers.Typed<?>
    fixLevel(com.mojang.datafixers.OpticFinder<?> levelSectionsFinder, com.mojang.datafixers.OpticFinder<?> sectionFinder, com.mojang.datafixers.OpticFinder<List<com.mojang.datafixers.util.Pair<String,com.mojang.serialization.Dynamic<?>>>> paletteFinder, com.mojang.datafixers.Typed<?> level)
     
    protected com.mojang.datafixers.TypeRewriteRule
     
    static long[]
    resizePackedIntArray(int maxValue, int elementBits, long[] elements)
     

    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

    • ELEMENT_BIT_SHIFT

      private static final int ELEMENT_BIT_SHIFT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Latn;a:I
      intermediary field_29863 Lnet/minecraft/class_5196;field_29863:I
      named ELEMENT_BIT_SHIFT Lnet/minecraft/datafixer/fix/BitStorageAlignFix;ELEMENT_BIT_SHIFT:I
    • CHUNK_WIDTH

      private static final int CHUNK_WIDTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Latn;b:I
      intermediary field_29864 Lnet/minecraft/class_5196;field_29864:I
      named CHUNK_WIDTH Lnet/minecraft/datafixer/fix/BitStorageAlignFix;CHUNK_WIDTH:I
    • CHUNK_LENGTH

      private static final int CHUNK_LENGTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Latn;c:I
      intermediary field_29865 Lnet/minecraft/class_5196;field_29865:I
      named CHUNK_LENGTH Lnet/minecraft/datafixer/fix/BitStorageAlignFix;CHUNK_LENGTH:I
    • MAX_BLOCK_STATE_ID

      private static final int MAX_BLOCK_STATE_ID
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Latn;d:I
      intermediary field_29866 Lnet/minecraft/class_5196;field_29866:I
      named MAX_BLOCK_STATE_ID Lnet/minecraft/datafixer/fix/BitStorageAlignFix;MAX_BLOCK_STATE_ID:I
    • HEIGHT_VALUE_BITS

      private static final int HEIGHT_VALUE_BITS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Latn;e:I
      intermediary field_29867 Lnet/minecraft/class_5196;field_29867:I
      named HEIGHT_VALUE_BITS Lnet/minecraft/datafixer/fix/BitStorageAlignFix;HEIGHT_VALUE_BITS:I
    • MAX_HEIGHT_VALUE

      private static final int MAX_HEIGHT_VALUE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Latn;f:I
      intermediary field_29868 Lnet/minecraft/class_5196;field_29868:I
      named MAX_HEIGHT_VALUE Lnet/minecraft/datafixer/fix/BitStorageAlignFix;MAX_HEIGHT_VALUE:I
  • Constructor Details

    • BitStorageAlignFix

      public BitStorageAlignFix(com.mojang.datafixers.schemas.Schema outputSchema)
      Mappings:
      Namespace Name Mixin selector
      official <init> Latn;<init>(Lcom/mojang/datafixers/schemas/Schema;)V
      intermediary <init> Lnet/minecraft/class_5196;<init>(Lcom/mojang/datafixers/schemas/Schema;)V
      named <init> Lnet/minecraft/datafixer/fix/BitStorageAlignFix;<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
    • fixHeightmaps

      private com.mojang.datafixers.Typed<?> fixHeightmaps(com.mojang.datafixers.Typed<?> fixedLevel)
      Mappings:
      Namespace Name Mixin selector
      official a Latn;a(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
      intermediary method_27775 Lnet/minecraft/class_5196;method_27775(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
      named fixHeightmaps Lnet/minecraft/datafixer/fix/BitStorageAlignFix;fixHeightmaps(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
    • fixLevel

      private static com.mojang.datafixers.Typed<?> fixLevel(com.mojang.datafixers.OpticFinder<?> levelSectionsFinder, com.mojang.datafixers.OpticFinder<?> sectionFinder, com.mojang.datafixers.OpticFinder<List<com.mojang.datafixers.util.Pair<String,com.mojang.serialization.Dynamic<?>>>> paletteFinder, com.mojang.datafixers.Typed<?> level)
      Mappings:
      Namespace Name Mixin selector
      official a Latn;a(Lcom/mojang/datafixers/OpticFinder;Lcom/mojang/datafixers/OpticFinder;Lcom/mojang/datafixers/OpticFinder;Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
      intermediary method_27774 Lnet/minecraft/class_5196;method_27774(Lcom/mojang/datafixers/OpticFinder;Lcom/mojang/datafixers/OpticFinder;Lcom/mojang/datafixers/OpticFinder;Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
      named fixLevel Lnet/minecraft/datafixer/fix/BitStorageAlignFix;fixLevel(Lcom/mojang/datafixers/OpticFinder;Lcom/mojang/datafixers/OpticFinder;Lcom/mojang/datafixers/OpticFinder;Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
    • fixBitStorageArray

      private static com.mojang.serialization.Dynamic<?> fixBitStorageArray(com.mojang.serialization.Dynamic<?> sectionDynamic, com.mojang.serialization.Dynamic<?> statesDynamic, int maxValue, int elementBits)
      Mappings:
      Namespace Name Mixin selector
      official a Latn;a(Lcom/mojang/serialization/Dynamic;Lcom/mojang/serialization/Dynamic;II)Lcom/mojang/serialization/Dynamic;
      intermediary method_27772 Lnet/minecraft/class_5196;method_27772(Lcom/mojang/serialization/Dynamic;Lcom/mojang/serialization/Dynamic;II)Lcom/mojang/serialization/Dynamic;
      named fixBitStorageArray Lnet/minecraft/datafixer/fix/BitStorageAlignFix;fixBitStorageArray(Lcom/mojang/serialization/Dynamic;Lcom/mojang/serialization/Dynamic;II)Lcom/mojang/serialization/Dynamic;
    • resizePackedIntArray

      public static long[] resizePackedIntArray(int maxValue, int elementBits, long[] elements)
      Mappings:
      Namespace Name Mixin selector
      official a Latn;a(II[J)[J
      intermediary method_27288 Lnet/minecraft/class_5196;method_27288(II[J)[J
      named resizePackedIntArray Lnet/minecraft/datafixer/fix/BitStorageAlignFix;resizePackedIntArray(II[J)[J