mc-beta-server/server/blocks/Block.ts
2023-04-08 20:52:47 +01:00

15 lines
No EOL
248 B
TypeScript

export class Block {
public readonly blockId:number;
public constructor(blockId:number) {
this.blockId = blockId;
}
static stone = new Block(1);
static grass = new Block(2);
static dirt = new Block(3);
static bedrock = new Block(7);
}