Removed a bunch of TODO and fixed item drops on block update

This commit is contained in:
Shoghi Cervantes
2014-10-13 18:54:34 +02:00
parent 1eec333501
commit b26ee09f76
14 changed files with 26 additions and 131 deletions

View File

@ -34,19 +34,21 @@ use pocketmine\entity\Vehicle;
class EntityDespawnEvent extends EntityEvent{
public static $handlerList = null;
private $entityType;
/**
* @param Entity $entity
*/
public function __construct(Entity $entity){
$this->entity = $entity;
$this->entityType = $entity::NETWORK_ID;
}
/**
* @return int
*/
public function getType(){
//TODO: implement Entity types
return -1;
return $this->entityType;
}
/**

View File

@ -34,11 +34,14 @@ use pocketmine\entity\Vehicle;
class EntitySpawnEvent extends EntityEvent{
public static $handlerList = null;
private $entityType;
/**
* @param Entity $entity
*/
public function __construct(Entity $entity){
$this->entity = $entity;
$this->entityType = $entity::NETWORK_ID;
}
/**
@ -52,8 +55,7 @@ class EntitySpawnEvent extends EntityEvent{
* @return int
*/
public function getType(){
//TODO: implement Entity types
return -1;
return $this->entityType;
}
/**