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

@ -0,0 +1,12 @@
<?php
/*
TODO:
move methods
*/
class Pig extends Animal{
const TYPE = 12;
function __construct(Level $level, $eid, $class, $type = 0, $data = array()){
console("A constructor which indicates it works! ".":".$eid.":".$class.":".$type);
parent::__construct($level, $eid, $class, $type, $data);
}
}