Add PlayerProfile.complete() API to trigger skin lookup
This commit is contained in:
parent
242e82f25b
commit
e3e257562f
2 changed files with 33 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
|||
From a81aa18c534bcbca348329135c312a5725210352 Mon Sep 17 00:00:00 2001
|
||||
From 0952cf855ca2b8bf45741e73250656ad452532c8 Mon Sep 17 00:00:00 2001
|
||||
From: Aikar <aikar@aikar.co>
|
||||
Date: Mon, 15 Jan 2018 21:46:46 -0500
|
||||
Subject: [PATCH] Basic PlayerProfile API
|
||||
|
@ -7,10 +7,10 @@ Provides basic elements of a PlayerProfile to be used by future API/events
|
|||
|
||||
diff --git a/src/main/java/com/destroystokyo/paper/profile/PlayerProfile.java b/src/main/java/com/destroystokyo/paper/profile/PlayerProfile.java
|
||||
new file mode 100644
|
||||
index 00000000..a7b69cab
|
||||
index 00000000..0f44f98f
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/com/destroystokyo/paper/profile/PlayerProfile.java
|
||||
@@ -0,0 +1,90 @@
|
||||
@@ -0,0 +1,97 @@
|
||||
+package com.destroystokyo.paper.profile;
|
||||
+
|
||||
+import com.mojang.authlib.GameProfile;
|
||||
|
@ -96,6 +96,13 @@ index 00000000..a7b69cab
|
|||
+ boolean isComplete();
|
||||
+
|
||||
+ /**
|
||||
+ * If this profile is not complete, then make the API call to complete it.
|
||||
+ * This is a blocking operation and should be done asynchronously.
|
||||
+ * @return if the profile is now complete
|
||||
+ */
|
||||
+ boolean complete();
|
||||
+
|
||||
+ /**
|
||||
+ * @deprecated Will be removed in 1.13
|
||||
+ */
|
||||
+ @Deprecated
|
||||
|
@ -277,5 +284,5 @@ index 87ab9d2b..f2ee6516 100644
|
|||
// Paper end
|
||||
}
|
||||
--
|
||||
2.15.1
|
||||
2.16.2
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue