Update to Minecraft 1.17

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2021-06-11 15:00:00 +10:00
parent 2e1a3720cf
commit 153752dfac
44 changed files with 3379 additions and 958 deletions

View File

@@ -0,0 +1,40 @@
package org.bukkit.inventory.meta;
import java.util.List;
import org.bukkit.inventory.ItemStack;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public interface BundleMeta extends ItemMeta {
/**
* Returns whether the item has any items.
*
* @return whether items are present
*/
boolean hasItems();
/**
* Returns an immutable list of the items stored in this item.
*
* @return items
*/
@NotNull
List<ItemStack> getItems();
/**
* Sets the items stored in this item.
*
* Removes all items when given null.
*
* @param items the items to set
*/
void setItems(@Nullable List<ItemStack> items);
/**
* Adds an item to this item.
*
* @param item item to add
*/
void addItem(@NotNull ItemStack item);
}