pub trait PathfinderMob: Mob {
Show 17 methods
// Provided methods
fn controlled_pathfinder_vehicle(&self) -> Option<SharedEntity> { ... }
fn get_walk_target_value(&self, pos: BlockPos) -> f32 { ... }
fn has_line_of_sight_cached(&self, target: &dyn Entity) -> bool { ... }
fn can_update_path(&self) -> bool { ... }
fn can_path_to_targets_below_surface(&self) -> bool { ... }
fn can_reach_living_target(&self, target: &dyn LivingEntity) -> bool { ... }
fn tick_pathfinder_path_navigation(&self) { ... }
fn tick_pathfinder_goal_selectors(&self)
where Self: Sized { ... }
fn is_stable_destination(&self, pos: BlockPos) -> bool { ... }
fn create_path_to(&self, target: BlockPos, reach_range: i32) -> Option<Path> { ... }
fn recompute_path(&self, request: NavigationRecomputeRequest) { ... }
fn move_to_pos(&self, target: DVec3, speed_modifier: f64) -> bool { ... }
fn move_to_pos_with_reach(
&self,
target: DVec3,
reach_range: i32,
speed_modifier: f64,
) -> bool { ... }
fn move_to_path(&self, path: Option<Path>, speed_modifier: f64) -> bool { ... }
fn is_path_finding(&self) -> bool { ... }
fn is_panicking(&self) -> bool { ... }
fn create_path_to_targets(
&self,
world: &Arc<World>,
targets: &[BlockPos],
reach_range: i32,
) -> Option<Path> { ... }
}Provided Methods§
fn controlled_pathfinder_vehicle(&self) -> Option<SharedEntity>
fn get_walk_target_value(&self, pos: BlockPos) -> f32
fn has_line_of_sight_cached(&self, target: &dyn Entity) -> bool
fn can_update_path(&self) -> bool
fn can_path_to_targets_below_surface(&self) -> bool
fn can_reach_living_target(&self, target: &dyn LivingEntity) -> bool
fn tick_pathfinder_goal_selectors(&self)where
Self: Sized,
fn is_stable_destination(&self, pos: BlockPos) -> bool
fn create_path_to(&self, target: BlockPos, reach_range: i32) -> Option<Path>
fn recompute_path(&self, request: NavigationRecomputeRequest)
fn move_to_pos(&self, target: DVec3, speed_modifier: f64) -> bool
fn move_to_pos_with_reach( &self, target: DVec3, reach_range: i32, speed_modifier: f64, ) -> bool
fn move_to_path(&self, path: Option<Path>, speed_modifier: f64) -> bool
fn is_path_finding(&self) -> bool
fn is_panicking(&self) -> bool
fn create_path_to_targets( &self, world: &Arc<World>, targets: &[BlockPos], reach_range: i32, ) -> Option<Path>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".