Trash:UNBT: Difference between revisions
Jump to navigation
Jump to search
imported>Revenant |
imported>Revenant |
||
| Line 11: | Line 11: | ||
=== String === | === String === | ||
{| class="wikitable" | |||
|- class="row0" | |||
! class="col0" | Packet ID | |||
! class="col1" | Field Name | |||
! class="col2" | Field Type | |||
! class="col3" | Example | |||
! class="col4" | Notes | |||
|- class="row1" | |||
| class="col0 centeralign" rowspan="5" | 0x0E | |||
| class="col1 centeralign" | Status | |||
| class="col2 centeralign" | byte | |||
| class="col3 centeralign" | <code>1</code> | |||
| class="col4" | The action the player is taking against the block (see below) | |||
|- class="row2" | |||
| class="col0 centeralign" | X | |||
| class="col1 centeralign" | int | |||
| class="col2 centeralign" | <code>32</code> | |||
| class="col3" | Block position | |||
|- class="row3" | |||
| class="col0 centeralign" | Y | |||
| class="col1 centeralign" | byte | |||
| class="col2 centeralign" | <code>64</code> | |||
| class="col3" | Block position | |||
|- class="row4" | |||
| class="col0 centeralign" | Z | |||
| class="col1 centeralign" | int | |||
| class="col2 centeralign" | <code>32</code> | |||
| class="col3 leftalign" | Block position | |||
|- class="row5" | |||
| class="col0 centeralign" | Face | |||
| class="col1 centeralign" | byte | |||
| class="col2 centeralign" | <code>3</code> | |||
| class="col3" | The face being hit (see below) | |||
|- class="row6" | |||
! class="col0" | Total Size: | |||
| class="col1 rightalign" colspan="4" | 12 bytes | |||
|} | |||
=== ByteString === | === ByteString === | ||
| Line 18: | Line 54: | ||
=== Array === | === Array === | ||
=== Set === | === Set === | ||
=== Dictionary === | === Dictionary === | ||
=== StringMap === | === StringMap === | ||
Revision as of 19:06, 19 December 2010
Unnamed Binary Tags
Integral
Contains a single integral value stored as a big endian signed 64-bit integer.
Real
Contains a single real number represented by a 64-bit IEEE754 double precision floating point number, flipped to big endian byte order.
String
| Packet ID | Field Name | Field Type | Example | Notes |
|---|---|---|---|---|
| 0x0E | Status | byte | 1
|
The action the player is taking against the block (see below) |
| X | int | 32
|
Block position | |
| Y | byte | 64
|
Block position | |
| Z | int | 32
|
Block position | |
| Face | byte | 3
|
The face being hit (see below) | |
| Total Size: | 12 bytes | |||
ByteString
Contains an Integral prefix, followed by an arbitrary amount of binary data.