@ApiStatus.NonExtendable
public interface ResourcePackDownloadRequest
extends net.kyori.examination.Examinable
This is a type containing all the information that the vanilla Minecraft client sends to the server when it wants to download a resource pack.
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.lang.String |
clientVersion()
Returns the requester player's client version
name, e.g.
|
@NotNull java.lang.String |
clientVersionId()
Returns the requester player's client version
id, e.g.
|
int |
packFormat()
Returns the pack format that the client supports.
|
static @NotNull ResourcePackDownloadRequest |
request(@NotNull java.util.UUID uuid,
@NotNull java.lang.String username,
@NotNull java.lang.String clientVersion,
@NotNull java.lang.String clientVersionId,
int packFormat)
Creates a new
ResourcePackDownloadRequest instance
with the given parameters. |
@NotNull java.lang.String |
username()
Returns the requester player's username.
|
@NotNull java.util.UUID |
uuid()
Returns the uuid of the requester player.
|
@NotNull static @NotNull ResourcePackDownloadRequest request(@NotNull @NotNull java.util.UUID uuid, @NotNull @NotNull java.lang.String username, @NotNull @NotNull java.lang.String clientVersion, @NotNull @NotNull java.lang.String clientVersionId, int packFormat)
ResourcePackDownloadRequest instance
with the given parameters.uuid - The requester player UUIDusername - The requester player usernameclientVersion - The requester client version nameclientVersionId - The requester client version idpackFormat - The client pack format@NotNull @NotNull java.util.UUID uuid()
@NotNull @NotNull java.lang.String username()
@NotNull @NotNull java.lang.String clientVersion()
@NotNull @NotNull java.lang.String clientVersionId()
int packFormat()