minecraft-src/net/minecraft/util/BitStorage.java
2025-07-04 01:41:11 +03:00

32 lines
575 B
Java

package net.minecraft.util;
import java.util.function.IntConsumer;
public interface BitStorage {
int getAndSet(int index, int value);
/**
* Sets the entry at the given location to the given value
*/
void set(int index, int value);
/**
* Gets the entry at the given index
*/
int get(int index);
/**
* Gets the long array that is used to store the data in this BitArray. This is useful for sending packet data.
*/
long[] getRaw();
int getSize();
int getBits();
void getAll(IntConsumer consumer);
void unpack(int[] array);
BitStorage copy();
}