public void updateMessage(String message, GuiChat chat) { chat.message = message; updateCursor(chat.cursorPosition, chat); }
public void updateCursor(int position, GuiChat chat) { chat.cursorPosition = checkCursor(chat.message, position); }