← Packet index

Packet 308

SetHudPacket

This packet is only used via the set hud command. This is for 3rd party content.

This packet will toggle the HUD visibility.

Packet datagramWire order
HeaderID 308varuint
0Hud Elementarray<int32> · variable
1Hud Visiblevarint32 · variable (up to 5 bytes)

Serialized fields

2 top-level fields
  1. 0Hud ElementCompressionEnum-as-ValueHudElementas array<int32>
    1. 0PaperDoll
    2. 1Armor
    3. 2ToolTips
    4. 3TouchControls
    5. 4Crosshair
    6. 5HotBar
    7. 6Health
    8. 7ProgressBar
    9. 8Hunger
    10. 9AirBubbles
    11. 10HorseHealth
    12. 11StatusEffects
    13. 12ItemText
  2. 1Hud VisibleCompressionEnum-as-ValueHudVisibilityas varint32
    1. 0Hide
    2. 1Reset

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this packet.