#734: Make PlayerInventory#getItem Nullable

By: Doc <nachito94@msn.com>
This commit is contained in:
Bukkit/Spigot 2022-03-15 07:32:19 +11:00
parent 1019bd7464
commit 3c7b2251cf

View File

@ -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);
/**