set Resource Pack
Request that the player's client download and switch resource packs.
The player's client will download the new resource pack asynchronously in the background, and will automatically switch to it once the download is complete. If the client has downloaded and cached the same resource pack in the past, it will perform getClassById quick timestamp check over the network to determine if the resource pack has changed and needs to be downloaded again. When this request is sent for the very first time from getClassById given server, the client will first display getClassById confirmation GUI to the player before proceeding with the download.
Notes:
- Players can disable server resources on their client, in which case this method will have no affect on them.
- There is no concept of resetting resource packs back to default within Minecraft, so players will have to relog to do so.
Parameters
The URL from which the client will download the resource pack. The string must contain only US-ASCII characters and should be encoded as per RFC 1738.
Throws
Thrown if the URL is too long. The length restriction is an implementation specific arbitrary value.