From 58d8f72cf52d4cf4e532bbe3d1031ed71e33e764 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Mon, 1 Nov 2021 16:21:44 +0000 Subject: [PATCH] Fixed javadoc --- eco-api/src/main/java/com/willfp/eco/core/Eco.java | 8 ++++---- .../main/java/com/willfp/eco/core/data/PlayerProfile.java | 3 +++ .../com/willfp/eco/core/data/keys/PersistentDataKey.java | 1 + 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/eco-api/src/main/java/com/willfp/eco/core/Eco.java b/eco-api/src/main/java/com/willfp/eco/core/Eco.java index 72996060..5f5d8162 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/Eco.java +++ b/eco-api/src/main/java/com/willfp/eco/core/Eco.java @@ -18,7 +18,10 @@ public class Eco { @ApiStatus.Internal private Handler handler; - + /** + * Set the handler. + * @param handler The handler. + */ @ApiStatus.Internal public void setHandler(@NotNull final Handler handler) { Validate.isTrue(Eco.handler == null, "Already initialized!"); @@ -41,9 +44,6 @@ public class Eco { * that shouldn't be used in your plugins. * * @return The handler. - * @apiNote As of eco 6.12.0, the handler is no longer regarded as part - * of the eco API. It is scheduled to be made internal-only *somehow* at - * some point in the future. */ @ApiStatus.Internal public Handler getHandler() { diff --git a/eco-api/src/main/java/com/willfp/eco/core/data/PlayerProfile.java b/eco-api/src/main/java/com/willfp/eco/core/data/PlayerProfile.java index 3801cbf5..1bf3ed6e 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/data/PlayerProfile.java +++ b/eco-api/src/main/java/com/willfp/eco/core/data/PlayerProfile.java @@ -8,6 +8,9 @@ import org.jetbrains.annotations.Nullable; import java.util.UUID; +/** + * Persistent data storage interface for players. + */ public interface PlayerProfile { /** * Write a key to a player's persistent data. diff --git a/eco-api/src/main/java/com/willfp/eco/core/data/keys/PersistentDataKey.java b/eco-api/src/main/java/com/willfp/eco/core/data/keys/PersistentDataKey.java index 429f93ac..b538adbc 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/data/keys/PersistentDataKey.java +++ b/eco-api/src/main/java/com/willfp/eco/core/data/keys/PersistentDataKey.java @@ -33,6 +33,7 @@ public class PersistentDataKey { * Create a new Persistent Data Key. * * @param key The key. + * @param type The data type. * @param defaultValue The default value. */ public PersistentDataKey(@NotNull final NamespacedKey key,