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

12 lines
237 B
TypeScript
Raw Normal View History

2023-11-02 08:31:43 +00:00
import { Vec3 } from "../Vec3"
2023-04-08 20:52:47 +01:00
export interface IEntity {
2023-04-09 04:19:10 +01:00
entityId:number,
2023-11-02 08:31:43 +00:00
position:Vec3,
lastPosition:Vec3,
velocity:Vec3,
2023-04-10 21:52:30 +01:00
crouching:boolean,
updateMetadata:() => void,
2023-04-10 14:42:14 +01:00
distanceTo:(entity:IEntity) => number,
2023-04-09 04:19:10 +01:00
onTick:() => void
2023-04-08 20:52:47 +01:00
}