mirror of
https://github.com/Mojang/bedrock-protocol-docs.git
synced 2025-08-22 02:22:46 +00:00
20 lines
1.3 KiB
HTML
20 lines
1.3 KiB
HTML
<!DOCTYPE html> <html> <head><style>table{font-family: arial, sans-serif;border-collapse: collapse;width: 100% ;}.tab { margin-left: 40px; }td, th{text-align: left;padding: 8px;}tr:nth-child(even) {background-color: #dddddd;}div#expand{display:block;}</style> </head> <body><h1>UpdatePlayerGameTypePacket (id: 151)</h1>
|
|
<table><col width="1%"><col width="99%"><tr><th></th><th></th></tr><tr><td> <b>Purpose:</b> </td>
|
|
<td>Update Player Game Type</td>
|
|
</tr><tr><td> <b>Notes:</b> </td>
|
|
<td>The server will send this back to all clients on receipt of the SetPlayerGameTypePacket so that cached game type and permissions flags in mLevel on all clients is kept up to date.</td>
|
|
</tr></table><br><h2>Payload</h2>
|
|
<img src="svg/UpdatePlayerGameTypePacket.svg" alt="UpdatePlayerGameTypePacket">
|
|
<br><br><br><table><col width="10%"><col width="10%"><col width="15%"><col width="80%"><tr><th>Field Name</th><th>Field Type</th><th>Field Constraints</th><th>Field Notes</th></tr><tr><td>Player Game Type</td>
|
|
<td>enum GameType</td>
|
|
<td></td>
|
|
<td></td>
|
|
</tr><tr><td>Target player</td>
|
|
<td>ActorUniqueID</td>
|
|
<td></td>
|
|
<td></td>
|
|
</tr><tr><td>Tick</td>
|
|
<td>PlayerInputTick</td>
|
|
<td></td>
|
|
<td>Most relevant to supply for transitioning into and out of spectator while in motion</td>
|
|
</tr></table></body> </html> |