mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Added Liquids properties
This commit is contained in:
parent
328cc968bd
commit
8d6d5306c1
7 changed files with 171 additions and 5 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue