Trash:UNBT: Difference between revisions

From wiki.vg
Jump to navigation Jump to search
imported>Revenant
imported>Revenant
m (moved UNBT to Trash:UNBT)
 
(19 intermediate revisions by the same user not shown)
Line 3: Line 3:
=== Integral ===
=== Integral ===


Contains a single integral value of arbitrary precision, signedness and endianness, as specified by a bitfield.
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 ===


{| class="wikitable"
{| class="wikitable"
|- class="row0"
|- class="row0"
! class="col0" | Tag ID
! class="col0" | Packet ID
! class="col1" | Field Name
! class="col1" | Field Name
! class="col2" | Field Type
! class="col2" | Field Type
Line 13: Line 19:
! class="col4" | Notes
! class="col4" | Notes
|- class="row1"
|- class="row1"
| class="col0 centeralign" rowspan="2" | 0x01
| class="col0 centeralign" rowspan="5" | 0x0E
| class="col1 centeralign" | Specification
| class="col1 centeralign" | Status
| class="col2 centeralign" | Bitfield (8 bit)
| class="col2 centeralign" | byte
| class="col3 centeralign" |  
| class="col3 centeralign" | <code>1</code>
| class="col4" | Indicates precision, signedness and endianness (see below)
| class="col4" | The action the player is taking against the block (see below)
|- class="row2"
|- class="row2"
| class="col0 centeralign" | Protocol Version
| class="col0 centeralign" | X
| class="col1 centeralign" | ?
| class="col1 centeralign" | int
| class="col2 centeralign" | <code>23</code>
| class="col2 centeralign" | <code>32</code>
| class="col3" | The actual integral value.
| 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
|}
|}


=== Real ===
=== String ===
=== ByteString ===
=== ByteString ===
Contains an Integral prefix, followed by an arbitrary amount of binary data.
=== Array ===
=== Array ===
=== Set ===
=== Set ===
=== Dictionary ===
=== Dictionary ===
=== StringMap ===
=== StringMap ===

Latest revision as of 19:07, 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.

Array

Set

Dictionary

StringMap