SPIGOT-5311: Add API to get/set item associated with throwable projectiles

By: Lars Dormans <lars.dormans@live.nl>
This commit is contained in:
Bukkit/Spigot
2020-02-21 09:53:46 +11:00
parent 188f017bdd
commit 11a4d6693e
8 changed files with 53 additions and 6 deletions

View File

@@ -0,0 +1,22 @@
package org.bukkit.entity;
import org.bukkit.inventory.ItemStack;
import org.jetbrains.annotations.NotNull;
public interface ThrowableProjectile extends Projectile {
/**
* Gets the ItemStack the thrown projectile will display.
*
* @return The thrown item display ItemStack
*/
@NotNull
ItemStack getItem();
/**
* Sets the display ItemStack for the thrown projectile.
*
* @param item ItemStack set to be displayed
*/
void setItem(@NotNull ItemStack item);
}