◆ __toString()
- Returns
- string
63 $str = get_class($this) .
"{\n";
64 $str .= implode(
", ", $this->value);
◆ getType()
◆ read()
read |
( |
NBT |
$nbt, |
|
|
bool |
$network = false |
|
) |
| |
- Parameters
-
- Returns
- mixed|void
44 $size = $nbt->getInt($network);
45 $this->value = array_values(unpack($nbt->endianness ===
NBT::LITTLE_ENDIAN ?
"V*" :
"N*", $nbt->get($size * 4)));
◆ write()
write |
( |
NBT |
$nbt, |
|
|
bool |
$network = false |
|
) |
| |
- Parameters
-
- Returns
- mixed|void
55 $nbt->putInt(count($this->value), $network);
56 $nbt->put(pack($nbt->endianness ===
NBT::LITTLE_ENDIAN ?
"V*" :
"N*", ...$this->value));
The documentation for this class was generated from the following file:
- src/pocketmine/nbt/tag/IntArrayTag.php