*/ class EntityBlockChangeEvent extends EntityEvent implements Cancellable{ use CancellableTrait; public function __construct( Entity $entity, private Block $from, private Block $to ){ $this->entity = $entity; } public function getBlock() : Block{ return $this->from; } public function getTo() : Block{ return $this->to; } }