From 412ebacb7454d1eec3b82202a8824669230009ef Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 28 Jun 2020 08:50:31 +1000 Subject: [PATCH] SPIGOT-5860: Item.setItemStack should be NotNull By: md_5 --- paper-api/src/main/java/org/bukkit/entity/Item.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/entity/Item.java b/paper-api/src/main/java/org/bukkit/entity/Item.java index 00c58c1d94..4f0caf5a70 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Item.java +++ b/paper-api/src/main/java/org/bukkit/entity/Item.java @@ -2,7 +2,6 @@ package org.bukkit.entity; import org.bukkit.inventory.ItemStack; import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; /** * Represents a dropped item. @@ -22,7 +21,7 @@ public interface Item extends Entity { * * @param stack An item stack. */ - public void setItemStack(@Nullable ItemStack stack); + public void setItemStack(@NotNull ItemStack stack); /** * Gets the delay before this Item is available to be picked up by players