PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
ExplosionPrimeEvent.php
1 <?php
2 
22 namespace pocketmine\event\entity;
23 
26 
30 class ExplosionPrimeEvent extends EntityEvent implements Cancellable{
31  public static $handlerList = null;
32  public static $eventPool = [];
33  public static $nextEvent = 0;
34 
35  protected $force;
36  private $blockBreaking;
37 
42  public function __construct(Entity $entity, $force){
43  $this->entity = $entity;
44  $this->force = $force;
45  $this->blockBreaking = true;
46  }
47 
51  public function getForce(){
52  return $this->force;
53  }
54 
55  public function setForce($force){
56  $this->force = (float) $force;
57  }
58 
62  public function isBlockBreaking(){
63  return $this->blockBreaking;
64  }
65 
69  public function setBlockBreaking($affectsBlocks){
70  $this->blockBreaking = (bool) $affectsBlocks;
71  }
72 
73 }