Class Utils

java.lang.Object
net.minestom.server.utils.Utils

@Internal public final class Utils extends Object
  • Method Details

    • getVarIntSize

      public static int getVarIntSize(int input)
    • writeVarInt

      public static void writeVarInt(ByteBuffer buf, int value)
    • writeVarIntHeader

      public static void writeVarIntHeader(@NotNull @NotNull ByteBuffer buffer, int startIndex, int value)
    • readVarInt

      public static int readVarInt(ByteBuffer buf)