File size: 537 Bytes
179199e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
export interface BlockState {
  id: string;
  properties: Record<string, string>;
  lightLevel: number;
  hardness: number;
  resistance: number;
  blastResistance: number;
  requiresTool: boolean;
  toolType: string | null;
  stackSize: number;
  transparent: boolean;
  solid: boolean;
  opaque: boolean;
  luminance: number;
  blockFace: BlockFace;
}

export enum BlockFace {
  BOTTOM = 0,
  TOP = 1,
  NORTH = 2,
  SOUTH = 3,
  WEST = 4,
  EAST = 5,
}

export interface BlockProperties {
  [key: string]: string | number | boolean;
}