Class Palettes

java.lang.Object
net.minestom.server.instance.palette.Palettes

public final class Palettes extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)