13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
20 public const NETWORK_ID = ProtocolInfo::ADD_BEHAVIOR_TREE_PACKET;
22 public string $behaviorTreeJson;
27 public static function create(
string $behaviorTreeJson) : self{
29 $result->behaviorTreeJson = $behaviorTreeJson;
34 $this->behaviorTreeJson = $in->getString();
38 $out->putString($this->behaviorTreeJson);
42 return $handler->handleAddBehaviorTree($this);
decodePayload(PacketSerializer $in)
static create(string $behaviorTreeJson)
handle(PacketHandlerInterface $handler)
encodePayload(PacketSerializer $out)