PocketMine
NBT Class Reference

Public Member Functions

 get ($len)
 
 put ($v)
 
 feof ()
 
 __construct ($endianness=self::LITTLE_ENDIAN)
 
 read ($buffer, $doMultiple=false)
 
 readCompressed ($buffer, $compression=ZLIB_ENCODING_GZIP)
 
 write ()
 
 writeCompressed ($compression=ZLIB_ENCODING_GZIP, $level=7)
 
 readTag ()
 
 writeTag (Tag $tag)
 
 getByte ()
 
 putByte ($v)
 
 getShort ()
 
 putShort ($v)
 
 getInt ()
 
 putInt ($v)
 
 getLong ()
 
 putLong ($v)
 
 getFloat ()
 
 putFloat ($v)
 
 getDouble ()
 
 putDouble ($v)
 
 getString ()
 
 putString ($v)
 
 getArray ()
 
 setArray (array $data, callable $guesser=null)
 
 getData ()
 
 setData ($data)
 

Static Public Member Functions

static putItemHelper (Item $item, $slot=null)
 
static getItemHelper (Compound $tag)
 
static matchList (Enum $tag1, Enum $tag2)
 
static matchTree (Compound $tag1, Compound $tag2)
 
static parseJSON ($data, &$offset=0)
 
static fromArrayGuesser ($key, $value)
 

Data Fields

const LITTLE_ENDIAN = 0
 
const BIG_ENDIAN = 1
 
const TAG_End = 0
 
const TAG_Byte = 1
 
const TAG_Short = 2
 
const TAG_Int = 3
 
const TAG_Long = 4
 
const TAG_Float = 5
 
const TAG_Double = 6
 
const TAG_ByteArray = 7
 
const TAG_String = 8
 
const TAG_Enum = 9
 
const TAG_Compound = 10
 
const TAG_IntArray = 11
 
 $buffer
 
 $endianness
 

Detailed Description

Named Binary Tag encoder/decoder

Member Function Documentation

getData ( )
Returns
Compound|array
static getItemHelper ( Compound  $tag)
static
Parameters
Compound$tag
Returns
Item
static putItemHelper ( Item  $item,
  $slot = null 
)
static
Parameters
Item$item
int$slot
Returns
Compound
setData (   $data)
Parameters
Compound | array$data
write ( )
Returns
string|bool

The documentation for this class was generated from the following file: