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

PlayerAnimationEvent incomplete PlayerAnimationType

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • None
    • None
    • None
    • This server is running CraftBukkit version 3478-Spigot-42b6152-a459f4d (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT)
    • Yes

    Description

      According to wiki.vg the Animation Packet has 2 animations, swinging either main or off hand:

      https://wiki.vg/Protocol#Animation_.28serverbound.29

       

      However, the PlayerAnimationType of the PlayerAnimationEvent only has one animation in its enum so far: ARM_SWING (probably main hand?).

       

      If this event should also satisfy the clientbound packets (as the cancellable state suggests), then there are more animations missing, like criticals and magic criticals. I also ask this as the javadoc for the event is not really helpful, only stating, "Represents a player animation event".

      https://wiki.vg/Protocol#Entity_Animation_.28clientbound.29

      Attachments

        Activity

          People

            Doc Doc
            Photon Photon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: