simple entity registering, tested on pig, some classes were created, althrough they are still not implemented

This commit is contained in:
GameHerobrine 2022-06-07 00:06:56 +03:00
parent e5abc85f94
commit 6a321aabe0
13 changed files with 116 additions and 4 deletions

View file

@ -20,6 +20,8 @@
*/
class Entity extends Position{
const TYPE = -1;
const CLASS_TYPE = -1;
public $age;
public $air;
public $spawntime;
@ -56,7 +58,6 @@ class Entity extends Position{
public $check = true;
public $size = 1;
public $inAction = false;
function __construct(Level $level, $eid, $class, $type = 0, $data = array()){
$this->level = $level;
$this->fallY = false;