From bd8df8bd5e5a45a81bf288aebcfec1e0cf1fadf8 Mon Sep 17 00:00:00 2001 From: themode Date: Sat, 24 Oct 2020 19:41:26 +0200 Subject: [PATCH] Fixed AdvancementTab#getTabs annotation --- .../net/minestom/server/advancements/AdvancementTab.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/minestom/server/advancements/AdvancementTab.java b/src/main/java/net/minestom/server/advancements/AdvancementTab.java index d7c69dbfe..743b3bb26 100644 --- a/src/main/java/net/minestom/server/advancements/AdvancementTab.java +++ b/src/main/java/net/minestom/server/advancements/AdvancementTab.java @@ -19,7 +19,7 @@ import java.util.*; * Each tab requires a root advancement and all succeeding advancements need to have a parent in the tab. * You can create a new advancement using {@link #createAdvancement(String, Advancement, Advancement)}. *

- * Be sure to use {@link #addViewer(Player)} and {@link #removeViewer(Player)} to control which players can see this tab. + * Be sure to use {@link #addViewer(Player)} and {@link #removeViewer(Player)} to control which players can see the tab. * (all viewers will see the same tab, with the same amount of validated advancements etc... so shared). */ public class AdvancementTab implements Viewable { @@ -52,9 +52,10 @@ public class AdvancementTab implements Viewable { * Gets all the tabs of a viewer. * * @param player the player to get the tabs from - * @return all the advancement tabs that the player sees + * @return all the advancement tabs that the player sees, can be null + * if the player doesn't see anything */ - @NotNull + @Nullable public static Set getTabs(@NotNull Player player) { return PLAYER_TAB_MAP.getOrDefault(player, null); }