mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-20 07:34:48 +01:00
SPIGOT-5860: Item.setItemStack should be NotNull
By: md_5 <git@md-5.net>
This commit is contained in:
parent
ce2e0ba37a
commit
412ebacb74
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…
Reference in a new issue