Seasons api

This commit is contained in:
2026-10-08 13:42:18 -03:00
parent 7e7ac8f6f4
commit dd66d6caa7
16 changed files with 231 additions and 10 deletions
+2
View File
@@ -147,6 +147,8 @@ interface EntityRef {
readonly id: string; // this entity's own id
readonly type: string; // its kind, like "bworld:fishing_hook"
readonly position: { x: number; y: number; z: number };
readonly biome: string; // where its feet are, see ../worldgen/biomes.md#seasons
readonly season: Season; // that biome's
readonly removed: boolean;
teleport(x: number, y: number, z: number): void;
remove(): void;
+2
View File
@@ -22,6 +22,8 @@ interface Player {
readonly position: { x: number; y: number; z: number }; // their feet
readonly eye_position: { x: number; y: number; z: number }; // where they see from, lower while swimming
readonly look_direction: { x: number; y: number; z: number }; // which way they look, 1 long
readonly biome: string; // where their feet are, see ../worldgen/biomes.md#seasons
readonly season: Season; // that biome's
readonly inventory: Container; // 36 slots, the hotbar is 0-8
readonly selected_slot: number;
readonly held_item: ItemStack | undefined;