mc-beta-server/server/blocks/BlockBehaviour.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

19 lines
No EOL
905 B
TypeScript

import AABB from "../AABB";
import Block from "./Block";
import IBlockBehaviour from "./IBlockBehaviour";
import Random from "../Random";
import World from "../World";
export default class BlockBehaviour implements IBlockBehaviour {
public block!:Block;
public placed(world:World, x:number, y:number, z:number) {}
public destroyed(world:World, x:number, y:number, z:number) {}
public interactable() { return false; }
public neighborBlockChange(world:World, x:number, y:number, z:number, blockId:number) {}
public droppedItem(blockId:number) { return blockId; }
public droppedCount(blockId:number) { return 1; }
public getBoundingBox(x:number, y:number, z:number) { return AABB.getAABB(0 + x, 0 + y, 0 + z, 1 + x, 1 + y, 1 + z); }
public randomTick(world:World, x:number, y:number, z:number, random:Random) {}
public canPlaceBlockAt(world:World, x:number, y:number, z:number) { return true; }
}