mc-beta-server/server/blocks/Block.ts
2023-04-11 01:53:33 +01:00

27 lines
No EOL
440 B
TypeScript

export class Block {
public readonly blockId:number;
public constructor(blockId:number) {
this.blockId = blockId;
}
// Define statics here
static readonly stone = new Block(1);
static readonly grass = new Block(2);
static readonly dirt = new Block(3);
static readonly bedrock = new Block(7);
static readonly waterStill = new Block(9);
static readonly wood = new Block(17);
static readonly leaves = new Block(18);
}