static @NotNull Identity identity(final @NotNull UUID uuid) {
    if (uuid.equals(NilIdentity.NIL_UUID)) return NilIdentity.INSTANCE;
    return new IdentityImpl(uuid);
  }
Creates an identity.

@param uuid the uuid
@return an identity
@since 4.0.0
api/src/main/java/net/kyori/adventure/identity/Identity.java