diff --git a/paper-api/src/main/java/org/bukkit/entity/Player.java b/paper-api/src/main/java/org/bukkit/entity/Player.java index 73a9ea4eb7..d287d78a04 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Player.java +++ b/paper-api/src/main/java/org/bukkit/entity/Player.java @@ -569,4 +569,27 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline * @return The current allowed speed, from -1 to 1 */ public float getWalkSpeed(); + + /** + * Request that the player's client download and switch texture packs. + *

+ * The player's client will download the new texture 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 texture pack in the past, it will perform a quick timestamp check over + * the network to determine if the texture pack has changed and needs to be downloaded again. + * When this request is sent for the very first time from a given server, the client will first + * display a confirmation GUI to the player before proceeding with the download. + *

+ * Notes: + *

+ * + * @param url The URL from which the client will download the texture pack. The string must contain + * only US-ASCII characters and should be encoded as per RFC 1738. + * @throws IllegalArgumentException Thrown if the URL is null. + * @throws IllegalArgumentException Thrown if the URL is too long. + */ + public void setTexturePack(String url); }