2023-04-08 20:52:47 +01:00
|
|
|
export class Block {
|
|
|
|
public readonly blockId:number;
|
|
|
|
|
|
|
|
public constructor(blockId:number) {
|
|
|
|
this.blockId = blockId;
|
|
|
|
}
|
|
|
|
|
2023-04-11 01:53:33 +01:00
|
|
|
// Define statics here
|
|
|
|
static readonly stone = new Block(1);
|
|
|
|
static readonly grass = new Block(2);
|
|
|
|
static readonly dirt = new Block(3);
|
2023-04-08 20:52:47 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-11 01:53:33 +01:00
|
|
|
static readonly bedrock = new Block(7);
|
2023-04-09 04:19:10 +01:00
|
|
|
|
2023-04-11 01:53:33 +01:00
|
|
|
static readonly waterStill = new Block(9);
|
2023-04-09 04:19:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-11 01:53:33 +01:00
|
|
|
static readonly wood = new Block(17);
|
|
|
|
static readonly leaves = new Block(18);
|
2023-04-08 20:52:47 +01:00
|
|
|
}
|