Swimming
This commit is contained in:
@@ -9,7 +9,8 @@ export interface ClientContext {
|
||||
hud: HudRegistry;
|
||||
input: { bind(id: Id, default_key: KeyCode, on_press: () => void): void };
|
||||
net: ClientNet;
|
||||
player: { readonly name: string; readonly position: Readonly<Position> };
|
||||
// is_swimming: lying flat in water in the 0.8 tall box, like minecraft's isSwimming
|
||||
player: { readonly name: string; readonly position: Readonly<Position>; is_swimming(): boolean };
|
||||
// read only, what this client sees
|
||||
world: {
|
||||
get_block(x: number, y: number, z: number): Id | undefined;
|
||||
|
||||
Reference in New Issue
Block a user