From d8bbaf409acfb94523c9b98423644288e749bf82 Mon Sep 17 00:00:00 2001 From: JustAHuman-xD <65748158+JustAHuman-xD@users.noreply.github.com> Date: Thu, 24 Oct 2024 09:04:36 -0500 Subject: [PATCH] add annotations to params --- .../thebusybiscuit/slimefun4/api/items/SlimefunItem.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/api/items/SlimefunItem.java b/src/main/java/io/github/thebusybiscuit/slimefun4/api/items/SlimefunItem.java index a8874b4dc7..9c1c5bac53 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/api/items/SlimefunItem.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/api/items/SlimefunItem.java @@ -233,7 +233,7 @@ protected SlimefunItem(ItemGroup itemGroup, ItemStack item, String id, RecipeTyp * * @return The {@link ItemStack} that is given to the {@link Player} * */ - public @Nonnull ItemStack getGiveItemResult(Player player) { + public @Nonnull ItemStack getGiveItemResult(@Nonnull Player player) { return getItem(); } @@ -248,7 +248,7 @@ protected SlimefunItem(ItemGroup itemGroup, ItemStack item, String id, RecipeTyp * * @return The {@link ItemStack} that is picked when middle-clicking this {@link SlimefunItem} */ - public @Nonnull ItemStack getPickBlockResult(Player player, Block block) { + public @Nonnull ItemStack getPickBlockResult(@Nonnull Player player, @Nonnull Block block) { return getItem(); }