pub struct VillagerBrainDebugData {Show 14 fields
pub name: PrefixedString,
pub profession: PrefixedString,
pub xp: Int,
pub health: Float,
pub max_health: Float,
pub inventory: PrefixedString,
pub wants_golem: Boolean,
pub anger_level: Int,
pub activities: PrefixedArray<PrefixedString>,
pub behaviors: PrefixedArray<PrefixedString>,
pub memories: PrefixedArray<PrefixedString>,
pub gossips: PrefixedArray<PrefixedString>,
pub pois: PrefixedArray<Position>,
pub potential_pois: PrefixedArray<Position>,
}Expand description
Villager brain debug data.
Fields§
§name: PrefixedStringVillager name.
profession: PrefixedStringVillager profession name.
xp: IntVillager experience.
health: FloatCurrent health.
max_health: FloatMaximum health.
inventory: PrefixedStringText representation of the inventory.
wants_golem: BooleanWhether the villager wants an iron golem.
anger_level: IntCurrent anger level.
activities: PrefixedArray<PrefixedString>Active brain activities.
behaviors: PrefixedArray<PrefixedString>Active behaviors.
memories: PrefixedArray<PrefixedString>Brain memories.
gossips: PrefixedArray<PrefixedString>Villager gossips.
pois: PrefixedArray<Position>Claimed points of interest.
potential_pois: PrefixedArray<Position>Candidate points of interest.
Trait Implementations§
Source§impl Clone for VillagerBrainDebugData
impl Clone for VillagerBrainDebugData
Source§fn clone(&self) -> VillagerBrainDebugData
fn clone(&self) -> VillagerBrainDebugData
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 moreSource§impl Debug for VillagerBrainDebugData
impl Debug for VillagerBrainDebugData
Source§impl PartialEq for VillagerBrainDebugData
impl PartialEq for VillagerBrainDebugData
impl StructuralPartialEq for VillagerBrainDebugData
Source§impl TypeCodec for VillagerBrainDebugDatawhere
PrefixedString: TypeCodec,
Int: TypeCodec,
Float: TypeCodec,
Boolean: TypeCodec,
PrefixedArray<PrefixedString>: TypeCodec,
PrefixedArray<Position>: TypeCodec,
impl TypeCodec for VillagerBrainDebugDatawhere
PrefixedString: TypeCodec,
Int: TypeCodec,
Float: TypeCodec,
Boolean: TypeCodec,
PrefixedArray<PrefixedString>: TypeCodec,
PrefixedArray<Position>: TypeCodec,
Auto Trait Implementations§
impl Freeze for VillagerBrainDebugData
impl RefUnwindSafe for VillagerBrainDebugData
impl Send for VillagerBrainDebugData
impl Sync for VillagerBrainDebugData
impl Unpin for VillagerBrainDebugData
impl UnsafeUnpin for VillagerBrainDebugData
impl UnwindSafe for VillagerBrainDebugData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ContextualCodec for Twhere
T: TypeCodec,
impl<T> ContextualCodec for Twhere
T: TypeCodec,
Source§fn encode_with_context(
&self,
writer: &mut impl Write,
_context: &Context,
) -> Result<(), CodecError>
fn encode_with_context( &self, writer: &mut impl Write, _context: &Context, ) -> Result<(), CodecError>
Encodes this value using context supplied by its enclosing structure.
Source§fn decode_with_context(
reader: &mut impl Read,
_context: &Context,
) -> Result<T, CodecError>where
T: Sized,
fn decode_with_context(
reader: &mut impl Read,
_context: &Context,
) -> Result<T, CodecError>where
T: Sized,
Decodes this value using context supplied by its enclosing structure.