2021-08-24 15:29:46 +01:00
|
|
|
/*
|
|
|
|
==============- Entity.js -=============
|
|
|
|
Created by Holly (tgpethan) (c) 2021
|
|
|
|
Licenced under MIT
|
|
|
|
========================================
|
|
|
|
*/
|
|
|
|
|
2021-08-12 05:13:25 +01:00
|
|
|
class Entity {
|
2021-08-20 22:42:00 +01:00
|
|
|
constructor(EID = 0, x = 0, y = 0, z = 0, yaw = 0, pitch = 0) {
|
|
|
|
this.EID = EID;
|
2021-08-18 01:26:04 +01:00
|
|
|
|
2021-08-12 05:13:25 +01:00
|
|
|
this.x = x;
|
|
|
|
this.y = y;
|
|
|
|
this.z = z;
|
|
|
|
this.yaw = yaw;
|
|
|
|
this.pitch = pitch;
|
|
|
|
|
|
|
|
this.motionX = 0;
|
|
|
|
this.motionY = 0;
|
|
|
|
this.motionZ = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
onTick() {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = Entity;
|