13
0
geforkt von Mirrors/Paper

SPIGOT-5860: Item.setItemStack should be NotNull

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2020-06-28 08:50:31 +10:00
Ursprung ce2e0ba37a
Commit 412ebacb74

Datei anzeigen

@ -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