Animators and coilhead animations

This commit is contained in:
2026-11-21 21:54:02 -03:00
parent 69ad4b80d0
commit 0c711b8163
21 changed files with 960 additions and 34 deletions
+5
View File
@@ -284,6 +284,11 @@ export interface MobRef extends LivingRef {
jump(): void;
// swings its arm and hits target with its attack_damage, wherever target is
attack(target: Player | MobRef): void;
// what clients see of its state, like BlockRef's: what its animator reads (see register_entity_animator in
// cubi/client). each field is any json value, saved with it, and sent to clients when it changes. undefined
// removes one
get_client_data<T>(field: string): T | undefined;
set_client_data(field: string, value: unknown): void;
}
// commands, brigadier's way like neoforge's: see common/commands.ts and docs/modding/misc/commands.md