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;
|
||||
|
||||
@@ -248,6 +248,8 @@ export interface Player {
|
||||
effect(id: Id): { readonly amplifier: number; readonly duration: number } | undefined;
|
||||
// whether they had it
|
||||
remove_effect(id: Id): boolean;
|
||||
// lying flat in water in the 0.8 tall box, like minecraft's isSwimming. their client says when
|
||||
is_swimming(): boolean;
|
||||
}
|
||||
|
||||
export interface EffectOptions {
|
||||
|
||||
Reference in New Issue
Block a user