2023-11-09 16:30:40 +00:00
|
|
|
import AABB from "../AABB";
|
2023-08-20 01:17:05 +01:00
|
|
|
import { World } from "../World";
|
|
|
|
import { IBlockBehaviour } from "./IBlockBehaviour";
|
|
|
|
|
|
|
|
export class BlockBehaviour implements IBlockBehaviour {
|
|
|
|
public neighborBlockChange(world:World, x:number, y:number, z:number, blockId:number) {}
|
2023-11-02 08:31:43 +00:00
|
|
|
public droppedItem(blockId:number) { return blockId; }
|
2023-11-09 16:30:40 +00:00
|
|
|
public getBoundingBox(x:number, y:number, z:number) { return AABB.getAABB(0 + x, 0 + y, 0 + z, 1 + x, 1 + y, 1 + z); }
|
2023-08-20 01:17:05 +01:00
|
|
|
}
|