Struct MobGoalEntry
pub struct MobGoalEntry {
pub priority: i32,
pub id: &'static str,
pub running: bool,
}Expand description
One goal of a mob’s selector, as goals and target_goals read it.
Fields§
§priority: i32The goal’s priority: a lower number preempts a higher one.
id: &'static strThe goal’s kind id (see GoalSpec::id).
running: boolWhether the goal is running now.
Trait Implementations§
§impl Clone for MobGoalEntry
impl Clone for MobGoalEntry
§fn clone(&self) -> MobGoalEntry
fn clone(&self) -> MobGoalEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MobGoalEntry
§impl Debug for MobGoalEntry
impl Debug for MobGoalEntry
impl Eq for MobGoalEntry
§impl PartialEq for MobGoalEntry
impl PartialEq for MobGoalEntry
impl StructuralPartialEq for MobGoalEntry
Auto Trait Implementations§
impl Freeze for MobGoalEntry
impl RefUnwindSafe for MobGoalEntry
impl Send for MobGoalEntry
impl Sync for MobGoalEntry
impl Unpin for MobGoalEntry
impl UnsafeUnpin for MobGoalEntry
impl UnwindSafe for MobGoalEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more