PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\nbt\NBT Class Reference
+ Collaboration diagram for pocketmine\nbt\NBT:

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)
 
 getData ()
 
 setData (Compound $data)
 

Public Attributes

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

Definition at line 54 of file NBT.php.


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