2023-11-09 16:30:40 +00:00
|
|
|
import AABB from "../AABB";
|
2023-08-20 01:17:05 +01:00
|
|
|
import { World } from "../World";
|
|
|
|
|
|
|
|
export interface IBlockBehaviour {
|
2023-11-02 08:31:43 +00:00
|
|
|
neighborBlockChange(world:World, x:number, y:number, z:number, blockId:number): void,
|
2023-11-09 16:30:40 +00:00
|
|
|
droppedItem: (blockId:number) => number,
|
2023-12-24 17:47:20 +00:00
|
|
|
droppedCount: (blockId:number) => number,
|
2023-11-09 16:30:40 +00:00
|
|
|
getBoundingBox: (x:number, y:number, z:number) => AABB,
|
2023-08-20 01:17:05 +01:00
|
|
|
}
|