mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
#734: Make PlayerInventory#getItem Nullable
By: Doc <nachito94@msn.com>
This commit is contained in:
parent
1019bd7464
commit
3c7b2251cf
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue