Interface ThrowableProjectile

All Superinterfaces:
Audience, CommandSender, Entity, HoverEventSource<HoverEvent.ShowEntity>, Metadatable, Nameable, Permissible, PersistentDataHolder, Pointered, Projectile, ServerOperator, Sound.Emitter
All Known Subinterfaces:
Egg, EnderPearl, LingeringPotion, Snowball, SplashPotion, ThrownExpBottle, ThrownPotion, Trident

public interface ThrowableProjectile extends Projectile
  • Method Details

    • getItem

      Gets the ItemStack the thrown projectile will display.
      Returns:
      The thrown item display ItemStack
    • setItem

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