Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-5406

Material.isThrowable()

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • CraftBukkit version git-Spigot-56f8471-ccd47a5 (MC: 1.14.4) (Implementing API version 1.14.4-R0.1-SNAPSHOT)
    • Yes

      This is to check whether or not the item can be thrown by a player. For example, Material.ENDER_PEARL.isThrowable() would return true.

      I was going to use this to get the ItemStack an enderpearl was thrown from by a player. This is because the itemstack will have persistent data on it that makes it a special enderpearl. In order to do this though i need to figure out which one was thrown: mainhand or offhand. If the pearl is in offhand but the mainhand has something that is throwable, that mainhand item is thrown.

            Unassigned Unassigned
            Perzan Perzan
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: