Implemented health, events, damage, motion push

This commit is contained in:
Shoghi Cervantes
2014-07-06 23:10:11 +02:00
parent 25ecdcf6e2
commit 65523972c2
15 changed files with 701 additions and 122 deletions

View File

@ -75,6 +75,10 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
parent::initEntity();
}
public function getName(){
return $this->nameTag;
}
public function saveNBT(){
parent::saveNBT();
$this->namedtag->Inventory = new Enum("Inventory", []);
@ -204,12 +208,4 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
return $d;
}
public function attack($damage, $source = "generic"){
}
public function heal($amount, $source = "generic"){
}
}