mc-beta-server/server/blocks/IBlockBehaviour.ts
Holly 6492f7c363
All checks were successful
Node.js Build / build (20.x) (push) Successful in 5m16s
make the chest gui work sorta kinda, yeah.
2024-11-26 19:24:08 +00:00

18 lines
No EOL
707 B
TypeScript

import AABB from "../AABB";
import Block from "./Block";
import Random from "../Random";
import World from "../World";
export default interface IBlockBehaviour {
block:Block,
placed(world:World, x:number, y:number, z:number): void,
destroyed(world:World, x:number, y:number, z:number): void,
interactable(): boolean,
neighborBlockChange(world:World, x:number, y:number, z:number, blockId:number): void,
droppedItem: (blockId:number) => number,
droppedCount: (blockId:number) => number,
getBoundingBox: (x:number, y:number, z:number) => AABB,
randomTick: (world:World, x:number, y:number, z:number, random:Random) => void,
canPlaceBlockAt: (world:World, x:number, y:number, z:number) => boolean
}