Class Palettes
java.lang.Object
net.minestom.server.instance.palette.Palettes
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
arrayLength
(int dimension, int bitsPerEntry) static int
count
(int bitsPerEntry, long[] values) static void
fill
(int bitsPerEntry, long[] values, int value) static long[]
pack
(int[] ints, int bitsPerEntry) static int
read
(int dimension, int bitsPerEntry, long[] values, int x, int y, int z) static int
sectionIndex
(int dimension, int x, int y, int z) static void
unpack
(int[] out, long[] in, int bitsPerEntry) static int
write
(int dimension, int bitsPerEntry, long[] values, int x, int y, int z, int value)
-
Method Details
-
pack
public static long[] pack(int[] ints, int bitsPerEntry) -
unpack
public static void unpack(int[] out, long[] in, int bitsPerEntry) -
arrayLength
public static int arrayLength(int dimension, int bitsPerEntry) -
read
public static int read(int dimension, int bitsPerEntry, long[] values, int x, int y, int z) -
write
public static int write(int dimension, int bitsPerEntry, long[] values, int x, int y, int z, int value) -
fill
public static void fill(int bitsPerEntry, long[] values, int value) -
count
public static int count(int bitsPerEntry, long[] values) -
sectionIndex
public static int sectionIndex(int dimension, int x, int y, int z)
-