← Type index

PlayerActionType

Enum values

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

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.