← Type index

PlayerActionType

Enum values

35 values
  1. 0Unknown
  2. 1StartDestroyBlock
  3. 2AbortDestroyBlock
  4. 3StopDestroyBlock
  5. 4StartSleeping
  6. 5StopSleeping
  7. 6Respawn
  8. 7StartJump
  9. 8StartSprinting
  10. 9StopSprinting
  11. 10StartSneaking
  12. 11StopSneaking
  13. 12CreativeDestroyBlock
  14. 13ChangeDimensionAck
  15. 14StartGliding
  16. 15StopGliding
  17. 16DenyDestroyBlock
  18. 17CrackBlock
  19. 18StartSwimming
  20. 19StopSwimming
  21. 20StartSpinAttack
  22. 21StopSpinAttack
  23. 22PredictDestroyBlock
  24. 23ContinueDestroyBlock
  25. 24StartItemUseOn
  26. 25StopItemUseOn
  27. 26HandledTeleport
  28. 27MissedSwing
  29. 28StartCrawling
  30. 29StopCrawling
  31. 30StartFlying
  32. 31StopFlying
  33. 32StartUsingItem
  34. 33InternalUpdate
  35. 34Count

Packet references

2 references
  1. PlayerActionPacket
    Action › PlayerActionType
    CompressionEnum-as-Value
  2. PlayerAuthInputPacket
    Player Block Actions › PlayerBlockActionData › Player Action Type › PlayerActionType
    CompressionEnum-as-Value

Wire format

1 format

Values are serialized as varint32.

ZigZag-encoded, then written as base-128 groups with the high bit indicating continuation. 1-5 bytes

CompressionEnum-as-Value

Changelog

Stable releases

Changes between stable protocol releases.

Released
Protocol
2225

Changed 1

  • Changed enum value Unknown from 0 to -1.
  • Changed enum value StartDestroyBlock from 1 to 0.
  • Changed enum value AbortDestroyBlock from 2 to 1.
  • Changed enum value StopDestroyBlock from 3 to 2.
  • Changed enum value StartSleeping from 4 to 5.
  • Changed enum value StopSleeping from 5 to 6.
  • Changed enum value Respawn from 6 to 7.
  • Changed enum value StartJump from 7 to 8.
  • Changed enum value StartSprinting from 8 to 9.
  • Changed enum value StopSprinting from 9 to 10.
  • Changed enum value StartSneaking from 10 to 11.
  • Changed enum value StopSneaking from 11 to 12.
  • Changed enum value CreativeDestroyBlock from 12 to 13.
  • Changed enum value ChangeDimensionAck from 13 to 14.
  • Changed enum value StartGliding from 14 to 15.
  • Changed enum value StopGliding from 15 to 16.
  • Changed enum value DenyDestroyBlock from 16 to 17.
  • Changed enum value CrackBlock from 17 to 18.
  • Changed enum value StartSwimming from 18 to 21.
  • Changed enum value StopSwimming from 19 to 22.
  • Changed enum value StartSpinAttack from 20 to 23.
  • Changed enum value StopSpinAttack from 21 to 24.
  • Changed enum value PredictDestroyBlock from 22 to 26.
  • Changed enum value ContinueDestroyBlock from 23 to 27.
  • Changed enum value StartItemUseOn from 24 to 28.
  • Changed enum value StopItemUseOn from 25 to 29.
  • Changed enum value HandledTeleport from 26 to 30.
  • Changed enum value MissedSwing from 27 to 31.
  • Changed enum value StartCrawling from 28 to 32.
  • Changed enum value StopCrawling from 29 to 33.
  • Changed enum value StartFlying from 30 to 34.
  • Changed enum value StopFlying from 31 to 35.
  • Changed enum value StartUsingItem from 32 to 37.
  • Changed enum value InternalUpdate from 33 to 38.
  • Changed enum value Count from 34 to 39.