Material.isThrowable()

XMLWordPrintable

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Minor
    • None
    • Affects Version/s: 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.

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

              Created:
              Updated: