From 3c7b2251cf8ff82415abfc56d647d9c6425827a2 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Tue, 15 Mar 2022 07:32:19 +1100 Subject: [PATCH] #734: Make PlayerInventory#getItem Nullable By: Doc --- .../src/main/java/org/bukkit/inventory/PlayerInventory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/inventory/PlayerInventory.java b/paper-api/src/main/java/org/bukkit/inventory/PlayerInventory.java index 99d900b239..62fbd7f6d8 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/PlayerInventory.java +++ b/paper-api/src/main/java/org/bukkit/inventory/PlayerInventory.java @@ -104,9 +104,9 @@ public interface PlayerInventory extends Inventory { * * @param slot the slot to get the ItemStack * - * @return the ItemStack in the given slot + * @return the ItemStack in the given slot or null if there is not one */ - @NotNull + @Nullable public ItemStack getItem(@NotNull EquipmentSlot slot); /**