mc-beta-server/server/blocks/IBlockBehaviour.ts
Holly 63333a04aa Implement AABB collision and add EntityItem properly.
The items are fully functional apart from picking them up, they are commented out in the MPClient breakBlock function if you want to play with them.
2023-11-09 16:30:40 +00:00

8 lines
No EOL
285 B
TypeScript

import AABB from "../AABB";
import { World } from "../World";
export interface IBlockBehaviour {
neighborBlockChange(world:World, x:number, y:number, z:number, blockId:number): void,
droppedItem: (blockId:number) => number,
getBoundingBox: (x:number, y:number, z:number) => AABB,
}