mc-beta-server/server/entities/IEntity.ts
2023-12-18 01:23:52 +00:00

16 lines
No EOL
321 B
TypeScript

import AABB from "../AABB"
import Vec3 from "../Vec3"
export interface IEntity {
entityId:number,
position:Vec3,
motion:Vec3,
lastPosition:Vec3,
crouching:boolean,
isDead:boolean,
markedForDisposal:boolean,
entityAABB:AABB,
updateMetadata:() => void,
distanceTo:(entity:IEntity) => number,
onTick:() => void
}