Animators and coilhead animations
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user