Implement some missing resource pack API (#1206)

This commit is contained in:
pop4959
2024-01-20 02:11:05 -08:00
committed by GitHub
parent 35137df76c
commit 523d750f2b
4 changed files with 106 additions and 7 deletions

View File

@@ -234,6 +234,11 @@ public interface Player extends
* Gets the {@link ResourcePackInfo} of the currently applied
* resource-pack or null if none.
*
* <p> Note that since 1.20.3 it is no longer recommended to use
* this method as it will only return the last applied
* resource pack. To get all applied resource packs, use
* {@link #getAppliedResourcePacks()} instead. </p>
*
* @return the applied resource pack or null if none.
*/
@Nullable
@@ -245,6 +250,11 @@ public interface Player extends
* the user is currently downloading or is currently
* prompted to install or null if none.
*
* <p> Note that since 1.20.3 it is no longer recommended to use
* this method as it will only return the last pending
* resource pack. To get all pending resource packs, use
* {@link #getPendingResourcePacks()} instead. </p>
*
* @return the pending resource pack or null if none
*/
@Nullable