mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
simple entity registering, tested on pig, some classes were created, althrough they are still not implemented
This commit is contained in:
parent
e5abc85f94
commit
6a321aabe0
13 changed files with 116 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue