mc-beta-server/server/entities/IEntity.ts

14 lines
No EOL
276 B
TypeScript

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