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

Add LivingEntity#clearActiveItem()

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • None
    • 1.16
    • Yes

      Pre-1.16, you could interrupt shield blocking and bow drawing with Player#updateInventory(). Player#updateInventory() does no longer do this. It seems that the method net.minecraft.server.v1_16_R1.EntityLiving#clearActiveItem() is what's normally used when shields are "broken" by axes. I think LivingEntity#clearActiveItem() would be useful for interrupting shield blocking and bow drawing.

            Unassigned Unassigned
            Anrza Anrza
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: