接口 ThrowableProjectile

所有超级接口:
CommandSender, Entity, Metadatable, Nameable, Permissible, PersistentDataHolder, Projectile, ServerOperator
所有已知子接口:
Egg, EnderPearl, LingeringPotion, Snowball, SplashPotion, ThrownExpBottle, ThrownPotion, Trident

public interface ThrowableProjectile extends Projectile
  • 方法详细资料

    • getItem

      获取投掷弹射物将显示的ItemStack.

      原文: Gets the ItemStack the thrown projectile will display.

      返回:
      投掷物品显示的ItemStack
    • setItem

      void setItem(@NotNull @NotNull ItemStack item)
      设置投掷弹射物显示的ItemStack.

      原文: Sets the display ItemStack for the thrown projectile.

      参数:
      item - 要显示的ItemStack