GenisysPro  for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
CraftItemEvent Class Reference

Public Member Functions

 __construct (Player $player, array $input, Recipe $recipe)
 
 getInput ()
 
 getRecipe ()
 
 getPlayer ()
 
- Public Member Functions inherited from Event
 getEventName ()
 
 getHandlers ()
 
- Public Member Functions inherited from Cancellable
 isCancelled ()
 
 setCancelled ($forceCancel=false)
 

Static Public Attributes

static $handlerList = null
 

Additional Inherited Members

- Protected Attributes inherited from Event
 $eventName = null
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( Player  $player,
array  $input,
Recipe  $recipe 
)
Parameters
\pocketmine\Player$player
Item[]$input
Recipe$recipe
43  {
44  $this->player = $player;
45  $this->input = $input;
46  $this->recipe = $recipe;
47  }

Member Function Documentation

◆ getInput()

getInput ( )
Returns
Item[]
52  {
53  $items = [];
54  foreach($this->input as $i => $item){
55  $items[$i] = clone $item;
56  }
57  return $items;
58  }

◆ getPlayer()

getPlayer ( )
Returns
70  {
71  return $this->player;
72  }

◆ getRecipe()

getRecipe ( )
Returns
Recipe
63  {
64  return $this->recipe;
65  }

Field Documentation

◆ $handlerList

$handlerList = null
static

The documentation for this class was generated from the following file: