Skip to content

Commit

Permalink
add annotations to params
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAHuman-xD committed Oct 24, 2024
1 parent 971150b commit d8bbaf4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand All @@ -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();
}

Expand Down

0 comments on commit d8bbaf4

Please sign in to comment.