Skip to main content

steel_core/entity/ai/goal/
mod.rs

1//! Vanilla-shaped goal selector and movement goals.
2
3mod avoid_entity;
4mod breath_air;
5mod breed_goal;
6mod climb_on_top_of_powder_snow;
7mod door_interact;
8mod flee_sun;
9mod float_goal;
10mod follow_mob;
11mod follow_parent;
12mod interact;
13mod leap_at_target;
14mod look_at_player;
15mod melee_attack;
16mod move_to_block;
17mod move_towards_restriction;
18mod move_towards_target;
19mod open_door;
20mod panic_goal;
21mod random_look_around;
22mod random_pos;
23mod random_stroll;
24mod random_swimming;
25mod restrict_sun;
26mod selector;
27mod target_goal;
28mod tempt_goal;
29mod try_find_water;
30mod water_avoiding_random_stroll;
31
32pub(crate) use breed_goal::BreedGoal;
33pub(crate) use float_goal::FloatGoal;
34pub(crate) use follow_parent::FollowParentGoal;
35pub(crate) use look_at_player::LookAtPlayerGoal;
36pub(crate) use panic_goal::PanicGoal;
37pub(crate) use random_look_around::RandomLookAroundGoal;
38pub(crate) use selector::{GoalControl, GoalSelector};
39pub(crate) use tempt_goal::TemptGoal;
40pub(crate) use water_avoiding_random_stroll::WaterAvoidingRandomStrollGoal;
41
42pub(super) const fn reduced_tick_delay(ticks: i32) -> i32 {
43    (ticks + 1) / 2
44}