Genisys  Genisys API 1.9.3
A server software for Minecraft: Pocket Edition with many features
NBT Class Reference

Public Member Functions

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

Static Public Member Functions

static matchList (ListTag $tag1, ListTag $tag2)
 
static matchTree (CompoundTag $tag1, CompoundTag $tag2)
 
static combineCompoundTags (CompoundTag $tag1, CompoundTag $tag2, bool $override=false)
 
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_List = 9
 
const TAG_Compound = 10
 
const TAG_IntArray = 11
 
 $buffer
 
 $endianness
 

Detailed Description

Named Binary Tag encoder/decoder

Member Function Documentation

getData ( )
Returns
CompoundTag|array
setData (   $data)
Parameters
CompoundTag | array$data
write ( bool  $network = false)
Parameters
bool$network
Returns
string|bool

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