ResourcePackDownloadRequest instead@Deprecated @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") public final class ResourcePackRequest extends java.lang.Object implements ResourcePackDownloadRequest
| Constructor and Description |
|---|
ResourcePackRequest(java.util.UUID uuid,
java.lang.String username,
java.lang.String clientVersion,
java.lang.String clientVersionId,
int packFormat)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.lang.String |
clientVersion()
Deprecated.
Returns the requester player's client version
name, e.g.
|
@NotNull java.lang.String |
clientVersionId()
Deprecated.
Returns the requester player's client version
id, e.g.
|
boolean |
equals(java.lang.Object o)
Deprecated.
|
@NotNull java.util.stream.Stream<? extends net.kyori.examination.ExaminableProperty> |
examinableProperties()
Deprecated.
|
int |
hashCode()
Deprecated.
|
@NotNull int |
packFormat()
Deprecated.
Returns the expected resource pack format
for the requester player's client, provided
by the
X-Minecraft-Pack-Format HTTP
header sent by the client |
java.lang.String |
toString()
Deprecated.
|
@NotNull java.lang.String |
username()
Deprecated.
Returns the requester player's username,
provided by the
X-Minecraft-Username
HTTP header sent by the client |
@NotNull java.util.UUID |
uuid()
Deprecated.
Returns the uuid of the requester player,
provided by the
X-Minecraft-UUID
HTTP header sent by the client |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitrequestpublic ResourcePackRequest(java.util.UUID uuid,
java.lang.String username,
java.lang.String clientVersion,
java.lang.String clientVersionId,
int packFormat)
@NotNull public @NotNull java.util.UUID uuid()
X-Minecraft-UUID
HTTP header sent by the clientuuid in interface ResourcePackDownloadRequest@NotNull public @NotNull java.lang.String username()
X-Minecraft-Username
HTTP header sent by the clientusername in interface ResourcePackDownloadRequest@NotNull public @NotNull java.lang.String clientVersion()
X-Minecraft-Client-Version HTTP header
sent by the clientclientVersion in interface ResourcePackDownloadRequest@NotNull public @NotNull java.lang.String clientVersionId()
X-Minecraft-Client-Version-Id HTTP
header sent by the client, not to be confused
with clientVersion()clientVersionId in interface ResourcePackDownloadRequest@NotNull public @NotNull int packFormat()
X-Minecraft-Pack-Format HTTP
header sent by the clientpackFormat in interface ResourcePackDownloadRequest@NotNull public @NotNull java.util.stream.Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()
examinableProperties in interface net.kyori.examination.Examinablepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object