Day night cycle
This commit is contained in:
@@ -11,7 +11,11 @@ export interface ClientContext {
|
||||
net: ClientNet;
|
||||
player: { readonly name: string; readonly position: Readonly<Position> };
|
||||
// read only, what this client sees
|
||||
world: { get_block(x: number, y: number, z: number): Id | undefined };
|
||||
world: {
|
||||
get_block(x: number, y: number, z: number): Id | undefined;
|
||||
// ticks since 06:00 of day 1, see ServerWorld.time
|
||||
readonly time: number;
|
||||
};
|
||||
log(...args: unknown[]): void;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user