GenisysPro
for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
|
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 | |
Named Binary Tag encoder/decoder
__construct | ( | $endianness = self::LITTLE_ENDIAN | ) |
NBT constructor.
int | $endianness |
|
static |
CompoundTag | $tag1 | |
CompoundTag | $tag2 | |
bool | $override |
|
static |
$key | |
$value |
get | ( | $len | ) |
$len |
getByte | ( | ) |
getDouble | ( | ) |
getFloat | ( | ) |
getInt | ( | bool | $network = false | ) |
bool | $network |
getLong | ( | ) |
getShort | ( | ) |
getString | ( | bool | $network = false | ) |
bool | $network |
ListTag | $tag1 | |
ListTag | $tag2 |
|
static |
CompoundTag | $tag1 | |
CompoundTag | $tag2 |
|
static |
$data | ||
int | $offset |
putByte | ( | $v | ) |
$v |
putDouble | ( | $v | ) |
$v |
putFloat | ( | $v | ) |
$v |
putInt | ( | $v, | |
bool | $network = false |
||
) |
$v | ||
bool | $network |
putLong | ( | $v | ) |
$v |
putShort | ( | $v | ) |
$v |
putString | ( | $v, | |
bool | $network = false |
||
) |
$v | ||
bool | $network |
read | ( | $buffer, | |
$doMultiple = false , |
|||
bool | $network = false |
||
) |
$buffer | ||
bool | $doMultiple | |
bool | $network |
readCompressed | ( | $buffer, | |
$compression = ZLIB_ENCODING_GZIP |
|||
) |
readNetworkCompressed | ( | $buffer, | |
$compression = ZLIB_ENCODING_GZIP |
|||
) |
readTag | ( | bool | $network = false | ) |
bool | $network |
setArray | ( | array | $data, |
callable | $guesser = null |
||
) |
write | ( | bool | $network = false | ) |
bool | $network |
writeCompressed | ( | $compression = ZLIB_ENCODING_GZIP , |
|
$level = 7 |
|||
) |
int | $compression | |
int | $level |
writeNetworkCompressed | ( | $compression = ZLIB_ENCODING_GZIP , |
|
$level = 7 |
|||
) |
int | $compression | |
int | $level |
writeTag | ( | Tag | $tag, |
bool | $network = false |
||
) |
$buffer |
$endianness |
const BIG_ENDIAN = 1 |
const LITTLE_ENDIAN = 0 |
const TAG_Byte = 1 |
const TAG_ByteArray = 7 |
const TAG_Compound = 10 |
const TAG_Double = 6 |
const TAG_End = 0 |
const TAG_Float = 5 |
const TAG_Int = 3 |
const TAG_IntArray = 11 |
const TAG_List = 9 |
const TAG_Long = 4 |
const TAG_Short = 2 |
const TAG_String = 8 |