menu
#4873729 Call to undefined method pocketmine\network\mcpe\protocol\types\inventory\ItemStack::write()

Submitted by PocketMine-MP 4.0.0+dev

General information

Version: 4.0.0+dev
Git commit: 19f536d6
Plugin involvement: None
Report date: 2021-04-07 21:29:28 +0000 UTC
Server uptime: 0 days 0 hours 3 minutes 17 seconds

System Information

PHP version: 7.4.16
Operating system: linux
System banner: Linux 0b7c64dd-b4aa-45c2-8fa4-8108be3fbfc4 4.15.0-140-generic #144-Ubuntu SMP Fri Mar 19 14:12:35 UTC 2021 x86_64

Error information

Message: Call to undefined method pocketmine\network\mcpe\protocol\types\inventory\ItemStack::write()
File: pmsrc/src/network/mcpe/protocol/AddItemActorPacket
Line: #67
Error level: Error
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
		$this->position = $in->getVector3();
$this->motion = $in->getVector3();
$this->metadata = $in->getEntityMetadata();
$this->isFromFishing = $in->getBool();
}

protected function encodePayload(PacketSerializer $out) : void{
$out->putEntityUniqueId($this->entityUniqueId ?? $this->entityRuntimeId);
$out->putEntityRuntimeId($this->entityRuntimeId);
$this->item->write($out);
$out->putVector3($this->position);
$out->putVector3Nullable($this->motion);
$out->putEntityMetadata($this->metadata);
$out->putBool($this->isFromFishing);
}

public function handle(PacketHandlerInterface $handler) : bool{
return $handler->handleAddItemActor($this);
}
}
#0 pmsrc/src/network/mcpe/protocol/DataPacket(114): pocketmine\network\mcpe\protocol\AddItemActorPacket->encodePayload(object pocketmine\network\mcpe\protocol\serializer\PacketSerializer)
#1 pmsrc/src/network/mcpe/protocol/serializer/PacketBatch(69): pocketmine\network\mcpe\protocol\DataPacket->encode()
#2 pmsrc/src/network/mcpe/NetworkSession(457): pocketmine\network\mcpe\protocol\serializer\PacketBatch::fromPackets(object pocketmine\network\mcpe\protocol\AddItemActorPacket, object pocketmine\network\mcpe\protocol\LevelEventPacket, object pocketmine\network\mcpe\protocol\SetActorDataPacket)
#3 pmsrc/src/network/mcpe/NetworkSession(1046): pocketmine\network\mcpe\NetworkSession->flushSendBuffer()
#4 pmsrc/src/network/NetworkSessionManager(76): pocketmine\network\mcpe\NetworkSession->tick()
#5 pmsrc/src/network/Network(91): pocketmine\network\NetworkSessionManager->tick()
#6 pmsrc/src/Server(1683): pocketmine\network\Network->tick()
#7 pmsrc/src/Server(1575): pocketmine\Server->tick()
#8 pmsrc/src/Server(1128): pocketmine\Server->tickProcessor()
#9 pmsrc/src/PocketMine(276): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#10 pmsrc/src/PocketMine(299): pocketmine\server()
#11 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show