public boolean takeIf(final char token) {
    this.skipWhitespace();
    if (this.hasMore() && this.peek() == token) {
      this.advance();
      return true;
    }
    return false;
  }
If the next non-whitespace character is {@code token}, advance past it.

<p>This method always consumes whitespace.</p>

@param token next non-whitespace character to query
@return if the next non-whitespace character is {@code token}
nbt/src/main/java/net/kyori/adventure/nbt/CharBuffer.java