Added Liquids properties

This commit is contained in:
Shoghi Cervantes Pueyo 2013-02-02 17:50:17 +01:00
parent 328cc968bd
commit 8d6d5306c1
7 changed files with 171 additions and 5 deletions

View file

@ -40,6 +40,7 @@ abstract class Block{
public $isPlaceable = true;
public $inWorld = false;
public $hasPhysics = false;
public $isLiquid = false;
public $v = false;
public function __construct($id, $meta = 0, $name = "Unknown"){
@ -63,7 +64,7 @@ abstract class Block{
final public function position(Vector3 $v){
$this->inWorld = true;
$this->position = new Vector3((int) $v->x, (int) $v->y, (int) $v->z);
$this->v = new Vector3((int) $v->x, (int) $v->y, (int) $v->z);
}
public function getDrops(Item $item, Player $player){