Interface ThrowableProjectile

All Superinterfaces:
CommandSender, Entity, Metadatable, Nameable, Permissible, PersistentDataHolder, Projectile, ServerOperator
All Known Subinterfaces:
Egg, EnderPearl, Snowball, ThrownExpBottle

public interface ThrowableProjectile
extends Projectile
  • Method Details

    • getItem

      @NotNull ItemStack getItem()
      Gets the ItemStack the thrown projectile will display.
      Returns:
      The thrown item display ItemStack
    • setItem

      void setItem​(@NotNull ItemStack item)
      Sets the display ItemStack for the thrown projectile.
      Parameters:
      item - ItemStack set to be displayed