*/ class ItemSpawnEvent extends EntityEvent{ public function __construct(ItemEntity $item){ $this->entity = $item; } /** * @return ItemEntity */ public function getEntity(){ return $this->entity; } }