PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
DataPacketSendEvent.php
1 <?php
2 
22 namespace pocketmine\event\server;
23 
24 use pocketmine\event;
28 
29 class DataPacketSendEvent extends ServerEvent implements Cancellable{
30  public static $handlerList = null;
31  public static $eventPool = [];
32  public static $nextEvent = 0;
33 
34  private $packet;
35  private $player;
36 
37  public function __construct(Player $player, DataPacket $packet){
38  $this->packet = $packet;
39  $this->player = $player;
40  }
41 
42  public function getPacket(){
43  return $this->packet;
44  }
45 
46  public function getPlayer(){
47  return $this->player;
48  }
49 }