mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 00:22:08 -07:00
#734: Make PlayerInventory#getItem Nullable
By: Doc <nachito94@msn.com>
This commit is contained in:
@@ -104,9 +104,9 @@ public interface PlayerInventory extends Inventory {
|
|||||||
*
|
*
|
||||||
* @param slot the slot to get the ItemStack
|
* @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);
|
public ItemStack getItem(@NotNull EquipmentSlot slot);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user