Seasons api
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user