From 98632925e11b6011e1de4fd7c485730f0138e294 Mon Sep 17 00:00:00 2001 From: Gero Date: Fri, 8 Dec 2023 09:40:25 +0100 Subject: [PATCH] javadoc for PlayerResourcePackStatusEvent.Status#isIntermediate --- .../api/event/player/PlayerResourcePackStatusEvent.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/src/main/java/com/velocitypowered/api/event/player/PlayerResourcePackStatusEvent.java b/api/src/main/java/com/velocitypowered/api/event/player/PlayerResourcePackStatusEvent.java index 3f175a40..8605d9bc 100644 --- a/api/src/main/java/com/velocitypowered/api/event/player/PlayerResourcePackStatusEvent.java +++ b/api/src/main/java/com/velocitypowered/api/event/player/PlayerResourcePackStatusEvent.java @@ -151,6 +151,13 @@ public class PlayerResourcePackStatusEvent { */ DISCARDED; + /** + * Returns true if the resource pack status is intermediate, indicating that the player has + * either accepted the resource pack and is currently downloading it or has successfully + * downloaded it. + * + * @return true if the status is intermediate (ACCEPTED or DOWNLOADED), false otherwise + */ public boolean isIntermediate() { return this == ACCEPTED || this == DOWNLOADED; }