mc-beta-server/server/blocks/Block.ts

26 lines
353 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);
static waterStill = new Block(9);
static wood = new Block(17);
static leaves = new Block(18);
}