PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
CraftItemEvent.php
1 <?php
2 
22 namespace pocketmine\event\inventory;
23 
28 
29 class CraftItemEvent extends Event implements Cancellable{
30  public static $handlerList = null;
31  public static $eventPool = [];
32  public static $nextEvent = 0;
33 
35  private $ts;
37  private $recipe;
38 
43  public function __construct(CraftingTransactionGroup $ts, Recipe $recipe){
44  $this->ts = $ts;
45  $this->recipe = $recipe;
46  }
47 
51  public function getTransaction(){
52  return $this->ts;
53  }
54 
58  public function getRecipe(){
59  return $this->recipe;
60  }
61 
62 }
__construct(CraftingTransactionGroup $ts, Recipe $recipe)