mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 20:07:41 +01:00
#734: Make PlayerInventory#getItem Nullable
By: Doc <nachito94@msn.com>
This commit is contained in:
parent
1019bd7464
commit
3c7b2251cf
@ -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…
Reference in New Issue
Block a user