13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
20 public const NETWORK_ID = ProtocolInfo::SHOW_CREDITS_PACKET;
22 public const STATUS_START_CREDITS = 0;
23 public const STATUS_END_CREDITS = 1;
25 public int $playerActorRuntimeId;
31 public static function create(
int $playerActorRuntimeId,
int $status) : self{
33 $result->playerActorRuntimeId = $playerActorRuntimeId;
34 $result->status = $status;
39 $this->playerActorRuntimeId = $in->getActorRuntimeId();
44 $out->putActorRuntimeId($this->playerActorRuntimeId);
49 return $handler->handleShowCredits($this);
decodePayload(PacketSerializer $in)
static create(int $playerActorRuntimeId, int $status)
encodePayload(PacketSerializer $out)
handle(PacketHandlerInterface $handler)