#734: Make PlayerInventory#getItem Nullable

This commit is contained in:
Doc 2022-03-15 07:32:19 +11:00 committed by md_5
parent 881e06e5db
commit 33a2b476bb
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

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