getCape

open suspend override fun getCape(userId: UUID): CapeInfo?

Retrieves the current cape of the supplied userId from Xenos. The result includes the moment when the data was fetched from the Mojang API, to that stale data can be identified. If the player cannot be found or has no cape, null will be returned. The texture is guaranteed to be present within the memory and therefore easily accessible.