Class BitStorageAlignFix
java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.util.datafix.fixes.BitStorageAlignFix
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic long[]addPadding(int size, int bits, long[] data) protected TypeRewriteRulemakeRule()private static Dynamic<?> updateBitStorage(Dynamic<?> tag, Dynamic<?> storage, int size, int bits) private Typed<?> updateHeightmaps(Typed<?> level) private static Typed<?> updateSections(OpticFinder<?> sectionsFinder, OpticFinder<?> sectionFinder, OpticFinder<List<Pair<String, Dynamic<?>>>> paletteFinder, Typed<?> level) Methods inherited from class DataFix
checked, convertUnchecked, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, getInputSchema, getOutputSchema, getRule, getVersionKey, onFail, writeAndRead, writeFixAndRead
-
Field Details
-
BIT_TO_LONG_SHIFT
private static final int BIT_TO_LONG_SHIFT- See Also:
-
SECTION_WIDTH
private static final int SECTION_WIDTH- See Also:
-
SECTION_HEIGHT
private static final int SECTION_HEIGHT- See Also:
-
SECTION_SIZE
private static final int SECTION_SIZE- See Also:
-
HEIGHTMAP_BITS
private static final int HEIGHTMAP_BITS- See Also:
-
HEIGHTMAP_SIZE
private static final int HEIGHTMAP_SIZE- See Also:
-
-
Constructor Details
-
BitStorageAlignFix
-
-
Method Details
-
makeRule
-
updateHeightmaps
-
updateSections
private static Typed<?> updateSections(OpticFinder<?> sectionsFinder, OpticFinder<?> sectionFinder, OpticFinder<List<Pair<String, Dynamic<?>>>> paletteFinder, Typed<?> level) -
updateBitStorage
-
addPadding
public static long[] addPadding(int size, int bits, long[] data)
-