#[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§
Source§impl Activity
impl Activity
pub fn azalea_read_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Trait Implementations§
Source§impl AzaleaRead for Activity
impl AzaleaRead for Activity
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl AzaleaWrite for Activity
impl AzaleaWrite for Activity
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 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 ToNbtTag for Activity
impl ToNbtTag for Activity
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
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> 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.