BitStorage .java

net.minecraft.util.BitStorage (interface, 26 lines): members: getAndSet, getBits, getRaw, getAll, fill, getSize, unpack, set, copy, get.

net.minecraft.utilinterface26 linescommon357 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Full Source

BitStorage.java26 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.util;
2
3
import java.util.function.IntConsumer;
4
5
public interface BitStorage {
6
	int getAndSet(int index, int value);
7
8
	void set(int index, int value);
9
10
	void fill(int value);
11
12
	int get(int index);
13
14
	long[] getRaw();
15
16
	int getSize();
17
18
	int getBits();
19
20
	void getAll(IntConsumer output);
21
22
	void unpack(int[] output);
23
24
	BitStorage copy();
25
}
26

Decompiled Minecraft 26.3 source of BitStorage (net/minecraft/util/BitStorage.java) with Mojang official mappings, stored verbatim on the site.