[][src]Module ozelot::mojang

For interacting with the various Mojang APIs

Remember that requests are rate limited, avoid sending too many requests, and cache what you can.

In general, you may want to read wiki.vg/Mojang API, wiki.vg/Authentication and wiki.vg/Protocol Encryption for further documentation about the requests and their responses.

Also contains some helper functions used for authentication.

Structs

APIStatus

Make a request to check the status of the Mojang APIs

APIStatusResponse

Contains the status about each of the Mojang APIs

Authenticate

Authenticate with Mojang

AuthenticateInvalidate

Invalidate an accessToken, using the accessToken and a clientToken

AuthenticateRefresh

Refresh a valid accessToken

AuthenticateSignout

Invalidate an accessToken, using the client username/password

AuthenticateValidate

Validate an existing access token

AuthenticationResponse

Represents a response to a successful authentication

BlockedServers

Get the blocked server's hashes

NameHistory

Represents a single historic name for a given account. Used in the UUIDToHistory request.

NameToUUID

Make a Username -> UUID (at time) request

NameUUID

Represents a single username - UUID mapping.

PlayernamesToUUIDs

A Playernames -> UUIDs request.

Profile

Represents a player Profile, as returned in a UUIDToProfile lookup

ProfileProperties

Represents the properties part of a Profile response

SessionHasJoined

Check whether a client has posted a SessionJoin to Mojang, used by servers for authenticating connecting clients.

SessionHasJoinedResponse

Response about whether the client has posted a join to Mojang

SessionJoin

Send a session join message to Mojang, used by clients when connecting to online servers

Statistics

Get the orders statistics

StatisticsResponse

The requested statistics

UUIDToHistory

A UUID -> Username history request

UUIDToProfile

Represents a UUID -> Profile + Skin and Cape request