mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
SPIGOT-5860: Item.setItemStack should be NotNull
This commit is contained in:
parent
3284612a10
commit
5058a35dd5
1 changed files with 1 additions and 2 deletions
|
@ -2,7 +2,6 @@ package org.bukkit.entity;
|
|||
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* Represents a dropped item.
|
||||
|
@ -22,7 +21,7 @@ public interface Item extends Entity {
|
|||
*
|
||||
* @param stack An item stack.
|
||||
*/
|
||||
public void setItemStack(@Nullable ItemStack stack);
|
||||
public void setItemStack(@NotNull ItemStack stack);
|
||||
|
||||
/**
|
||||
* Gets the delay before this Item is available to be picked up by players
|
||||
|
|
Loading…
Add table
Reference in a new issue