← Type index

PlayerBlockActionData

Object datagramWire order
0Player Action Typevarint32 · variable (up to 5 bytes)
1PositionBlockPos · variable
2Facingvarint32 · variable (up to 5 bytes)

Fields

3 top-level fields
  1. 0Player Action TypeThe server-authoritative block action type.CompressionEnum-as-ValuePlayerActionTypeas varint32
    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
  2. 1PositionThe block position for the action. StopDestroyBlock serializes the default value.BlockPos
    1. 0XCompressionvarint32
    2. 1YCompressionvarint32
    3. 2ZCompressionvarint32
  3. 2FacingFacing, or action-specific integer data for AbortDestroyBlock.Compressionvarint32

Packet references

1 reference
  1. PlayerAuthInputPacket
    Player Block Actions › PlayerBlockActionData

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this type.