#[repr(u32)]pub enum Activity {
Show 26 variants
Core = 0,
Idle = 1,
Work = 2,
Play = 3,
Rest = 4,
Meet = 5,
Panic = 6,
Raid = 7,
PreRaid = 8,
Hide = 9,
Fight = 10,
Celebrate = 11,
AdmireItem = 12,
Avoid = 13,
Ride = 14,
PlayDead = 15,
LongJump = 16,
Ram = 17,
Tongue = 18,
Swim = 19,
LaySpawn = 20,
Sniff = 21,
Investigate = 22,
Roar = 23,
Emerge = 24,
Dig = 25,
}Expand description
The AI code that’s currently being executed for the entity.
Variants§
Core = 0
Idle = 1
Work = 2
Play = 3
Rest = 4
Meet = 5
Panic = 6
Raid = 7
PreRaid = 8
Hide = 9
Fight = 10
Celebrate = 11
AdmireItem = 12
Avoid = 13
Ride = 14
PlayDead = 15
LongJump = 16
Ram = 17
Tongue = 18
Swim = 19
LaySpawn = 20
Sniff = 21
Investigate = 22
Roar = 23
Emerge = 24
Dig = 25
Implementations§
Trait Implementations§
Source§impl AzBuf for Activity
impl AzBuf for Activity
fn azalea_write(&self, buf: &mut impl Write) -> Result<(), Error>
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl<'de> Deserialize<'de> for Activity
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Activity
Available on crate feature
serde only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for Activity
Convert the value to a stringified identifier, formatted like
"minecraft:air".
impl Display for Activity
Convert the value to a stringified identifier, formatted like
"minecraft:air".
Source§impl FromNbtTag for Activity
impl FromNbtTag for Activity
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for Activity
Parse the value from a stringified identifier, formatted like
either "air" or "minecraft:air".
impl FromStr for Activity
Parse the value from a stringified identifier, formatted like
either "air" or "minecraft:air".
Source§impl Ord for Activity
impl Ord for Activity
Source§impl PartialOrd for Activity
impl PartialOrd for Activity
Source§impl ToNbtTag for Activity
impl ToNbtTag for Activity
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl<'a> TryFrom<&'a Identifier> for Activity
impl<'a> TryFrom<&'a Identifier> for Activity
impl Copy for Activity
impl Eq for Activity
impl StructuralPartialEq for Activity
Auto Trait Implementations§
impl Freeze for Activity
impl RefUnwindSafe for Activity
impl Send for Activity
impl Sync for Activity
impl Unpin for Activity
impl UnwindSafe for Activity
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.