Definition at line 35 of file CraftItemEvent.php.
 
◆ __construct()
      
        
          | pocketmine\event\inventory\CraftItemEvent::__construct  | 
          ( | 
          private CraftingTransaction |           $transaction,  | 
        
        
           | 
           | 
          private CraftingRecipe |           $recipe,  | 
        
        
           | 
           | 
          private int |           $repetitions,  | 
        
        
           | 
           | 
          private array |           $inputs,  | 
        
        
           | 
           | 
          private array |           $outputs ) | 
        
      
 
 
◆ call()
  
  
      
        
          | pocketmine\event\Event::call  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
Calls event handlers registered for this event.
- Exceptions
 - 
  
  
 
RuntimeException if event call recursion reaches the max depth limit 
Definition at line 49 of file Event.php.
 
 
◆ getEventName()
  
  
      
        
          | pocketmine\event\Event::getEventName  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
finalinherited   | 
  
 
 
◆ getInputs()
      
        
          | pocketmine\event\inventory\CraftItemEvent::getInputs  | 
          ( | 
           | ) | 
           | 
        
      
 
Returns a list of items destroyed as ingredients of the recipe.
- Returns
 - Item[] 
 
Definition at line 77 of file CraftItemEvent.php.
 
 
◆ getOutputs()
      
        
          | pocketmine\event\inventory\CraftItemEvent::getOutputs  | 
          ( | 
           | ) | 
           | 
        
      
 
Returns a list of items created by crafting the recipe.
- Returns
 - Item[] 
 
Definition at line 86 of file CraftItemEvent.php.
 
 
◆ getPlayer()
      
        
          | pocketmine\event\inventory\CraftItemEvent::getPlayer  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ getRecipe()
      
        
          | pocketmine\event\inventory\CraftItemEvent::getRecipe  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ getRepetitions()
      
        
          | pocketmine\event\inventory\CraftItemEvent::getRepetitions  | 
          ( | 
           | ) | 
           | 
        
      
 
Returns the number of times the recipe was crafted. This is usually 1, but might be more in the case of recipe book shift-clicks (which craft lots of items in a batch). 
Definition at line 68 of file CraftItemEvent.php.
 
 
◆ getTransaction()
      
        
          | pocketmine\event\inventory\CraftItemEvent::getTransaction  | 
          ( | 
           | ) | 
           | 
        
      
 
Returns the inventory transaction involved in this crafting event. 
Definition at line 53 of file CraftItemEvent.php.
 
 
◆ hasHandlers()
  
  
      
        
          | static pocketmine\event\Event::hasHandlers  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
staticinherited   | 
  
 
Returns whether the current class context has any registered global handlers. This can be used in hot code paths to avoid unnecessary event object creation.
Usage: SomeEventClass::hasHandlers() 
Definition at line 77 of file Event.php.
 
 
◆ isCancelled()
  
  
      
        
          | pocketmine\event\Cancellable::isCancelled  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
Returns whether this instance of the event is currently cancelled.
If it is cancelled, only downstream handlers that declare @handleCancelled will be called with this event. 
 
 
◆ $eventName
  
  
      
        
          | string pocketmine\event\Event::$eventName = null | 
         
       
   | 
  
protectedinherited   | 
  
 
 
The documentation for this class was generated from the following file: