This commit is contained in:
2026-10-02 11:07:09 -03:00
parent d5015edfa1
commit 9ca717d2d0
18 changed files with 449 additions and 38 deletions
+2 -1
View File
@@ -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;
+2
View File
@@ -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 {